NsgTable class

Виджет отображения таблицы

Inheritance
Available extensions

Constructors

NsgTable.new({Key? key, bool hideCellsBackground = false, bool hideLines = false, NsgTableStyle style = const NsgTableStyle(), int rowsMaxCount = 20, required NsgDataController<NsgDataItem> controller, double? rowFixedHeight, int? cellMaxLines = 4, int? cellFixedLines, bool showTotals = false, List<NsgTableColumn> columns = const [], String? periodFilterLabel = "Фильтр по периоду", bool showBoolIconsWithMonochromeColors = false, IconData iconTrue = Icons.check, IconData iconFalse = Icons.close, bool showIconTrue = true, bool showIconFalse = true, bool selectCellOnHover = false, Color? headerBackColor, Color? headerColor, bool sortingClickEnabled = true, bool horizontalScrollEnabled = true, dynamic rowOnTap(NsgDataItem?, String)?, bool headerOnTap(String)?, dynamic onColumnsChange(List<NsgTableColumn>)?, bool showHeader = true, List<NsgTableMenuButtonType> availableButtons = NsgTableMenuButtonType.allValues, String? elementEditPageName, bool initialIsPeriodFilterOpen = false, bool initialIsSearchStringOpen = false, bool removeVerticalScrollIfNotNeeded = false, NsgUserSettingsController<NsgDataItem>? userSettingsController, String userSettingsId = '', NsgUpdateKey? externaltableKey, bool forbidDeleting(NsgDataItem item)?})

Properties

availableButtons List<NsgTableMenuButtonType>
Перечисление доступных для пользователя Кнопок управления таблицей
final
cellFixedLines int?
Фиксированное количество строк в ячейке тела таблицы
final
cellMaxLines int?
Максимальное количество строк в ячейке тела таблицы
final
columns List<NsgTableColumn>
Параметры колонок
final
controller → NsgDataController<NsgDataItem>
Контроллер данных.
final
elementEditPageName String?
Имя страницы для создания и редактирования страницы элемента строки таблицы
final
externaltableKey → NsgUpdateKey?
final
forbidDeleting bool Function(NsgDataItem item)?
final
hashCode int
The hash code for this object.
no setterinherited
headerBackColor Color?
Цвет и цвет фона в header таблицы
final
headerColor Color?
Цвет и цвет фона в header таблицы
final
headerOnTap bool Function(String)?
Функция, срабатывающая при нажатии на строку заголовка Если обработчик вернет true - это остановит дальнейшую обработку события
final
hideCellsBackground bool
Спрятать фон у ячеек в теле таблицы
final
hideLines bool
Спрятать все линии
final
horizontalScrollEnabled bool
Разрешён ли горизонтальный скролл
final
iconFalse IconData
final
iconTrue IconData
Виджет для иконок 'True' и 'False'
final
initialIsPeriodFilterOpen bool
final
initialIsSearchStringOpen bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onColumnsChange → dynamic Function(List<NsgTableColumn>)?
Функция возврата колонок
final
periodFilterLabel String?
Текст лейбла NsgPeriodFilter
final
removeVerticalScrollIfNotNeeded bool
Убираем отступы справа если контент поместился без вертикального скролла
final
rowFixedHeight double?
Фиксированная высота строки
final
rowOnTap → dynamic Function(NsgDataItem?, String)?
Функция, срабатывающая при нажатии на строку
final
rowsMaxCount int
Кол-во отображаемых строк в теле таблицы
final
rowStateList List<NsgTableRowState>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectCellOnHover bool
При Hover выделять только ячейку, а не весь ряд
final
showBoolIconsWithMonochromeColors bool
Отображать цвета иконок булов в Ч/Б
final
showHeader bool
Показывать или нет Header
final
showIconFalse bool
final
showIconTrue bool
Показывать или нет иконки 'True' и 'False'
final
showTotals bool
Показывать "Итого" внизу таблицы
final
sortingClickEnabled bool
Разрешена ли сортировка колонок по клику в хедере
final
style NsgTableStyle
Оформление таблицы (цвета, стили)
final
userSettingsController → NsgUserSettingsController<NsgDataItem>?
Контроллер настроект пользователя
final
userSettingsId String
Идетнификатор данной таблицы в настройках пользователя
final

Methods

asGlass({double blurX = 10.0, double blurY = 10.0, Color tintColor = Colors.white, bool frosted = true, BorderRadius clipBorderRadius = BorderRadius.zero, Clip clipBehaviour = Clip.antiAlias, TileMode tileMode = TileMode.clamp, CustomClipper<RRect>? clipper}) ClipRRect

Available on T, provided by the NsgGlassWidget extension

closeAllSlided(List<NsgTableRow> tableRowList) → dynamic
closeAllSlidedKeepOne(NsgTableRowState row) → dynamic
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<NsgTable>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited