NsgTableColumn constructor
NsgTableColumn({
- 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 = '',
Implementation
NsgTableColumn(
{required this.name,
this.columns,
this.totalType = NsgTableColumnTotalType.none,
this.presentation,
this.expanded = false,
this.totalSum = 0,
this.flex = 1,
this.width,
this.visible = true,
this.sort = NsgTableColumnSort.nosort,
this.headerAlign,
this.headerTextAlign,
this.headerTextStyle,
this.headerBackColor,
this.verticalAlign,
this.rowTextAlign,
this.rowBackColor,
this.rowTextStyle,
this.showTotals = false,
this.allowSort = true,
this.getColumnText,
this.getColumnWidget,
this.getBackColor,
this.getRowTextStyle,
this.format = ''});