NsgTableColumn class

Класс колонки NsgSimpleTable

Constructors

NsgTableColumn.new({required String name, List<NsgTableColumn>? columns, NsgTableColumnTotalType totalType = NsgTableColumnTotalType.none, String? presentation, bool expanded = false, dynamic totalSum = 0, int flex = 1, double? width, bool visible = true, NsgTableColumnSort? sort = NsgTableColumnSort.nosort, AlignmentGeometry? headerAlign, TextAlign? headerTextAlign, TextStyle? headerTextStyle, Color? headerBackColor, AlignmentGeometry? verticalAlign, TextAlign? rowTextAlign, Color? rowBackColor, TextStyle? rowTextStyle, bool? showTotals = false, bool allowSort = true, String getColumnText(NsgDataItem item, NsgTableColumn column, String defaultText)?, Widget getColumnWidget(NsgDataItem item, NsgTableColumn column)?, Color getBackColor(NsgDataItem item, NsgTableColumn column)?, TextStyle getRowTextStyle(NsgDataItem item, NsgTableColumn column)?, String format = ''})

Properties

allowSort bool
Разрешить сортировку по данному столбцу
getter/setter pair
columns List<NsgTableColumn>?
Для sub ячеек в хедере
getter/setter pair
expanded bool
Растягивать колонку Expanded
getter/setter pair
flex int
flex для автоподбора ширины
getter/setter pair
format String
Строка форматирования. Используется не для всех типов. Пока реализовано только для даты
getter/setter pair
getBackColor Color Function(NsgDataItem item, NsgTableColumn column)?
getter/setter pair
getColumnText String Function(NsgDataItem item, NsgTableColumn column, String defaultText)?
getter/setter pair
getColumnWidget Widget Function(NsgDataItem item, NsgTableColumn column)?
getter/setter pair
getRowTextStyle TextStyle Function(NsgDataItem item, NsgTableColumn column)?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerAlign AlignmentGeometry?
Выравнивание текста в заголовке
getter/setter pair
headerBackColor Color?
Текст заливки заголовок
getter/setter pair
headerTextAlign TextAlign?
Выравнивание текста в заголовке
getter/setter pair
headerTextStyle TextStyle?
Стиль текста в заголовке
getter/setter pair
name String
Имя поля данных
getter/setter pair
presentation String?
Описание колонки для отображения пользователю Если не задано, то будет взято из поля объекта (field.description)
getter/setter pair
rowBackColor Color?
Текст заливки в строках
getter/setter pair
rowTextAlign TextAlign?
Выравнивание текста в строках
getter/setter pair
rowTextStyle TextStyle?
Стиль текста в строках
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTotals bool?
Показывать итоги
getter/setter pair
sort NsgTableColumnSort?
Тип сортировки
getter/setter pair
totalSum ↔ dynamic
Сумма
getter/setter pair
totalType NsgTableColumnTotalType
Типы подсчёта итогов в колонке: Нет, Суммирование значений, Кол-во элементов
getter/setter pair
verticalAlign AlignmentGeometry?
Вертикальное выравнивание текста в строках
getter/setter pair
visible bool
Видимость колонки
getter/setter pair
width double?
Ширина колонки
getter/setter pair

Methods

fromJson(Map<String, dynamic> json) → void
Чтение полей объекта из JSON
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Запись полей объекта в JSON
toString() String
A string representation of this object.
inherited

Operators

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

Constants

usFlex → const String
usPresentation → const String
usVisible → const String
usWidth → const String