NsgTable constructor
NsgTable({
- 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()?,
- dynamic onColumnsChange()?,
- 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
Implementation
NsgTable(
{Key? key,
this.hideCellsBackground = false,
this.hideLines = false,
this.style = const NsgTableStyle(),
this.rowsMaxCount = 20,
required this.controller,
this.rowFixedHeight,
this.cellMaxLines = 4,
this.cellFixedLines,
this.showTotals = false,
this.columns = const [],
this.periodFilterLabel = "Фильтр по периоду",
this.showBoolIconsWithMonochromeColors = false,
this.iconTrue = Icons.check,
this.iconFalse = Icons.close,
this.showIconTrue = true,
this.showIconFalse = true,
this.selectCellOnHover = false,
this.headerBackColor,
this.headerColor,
this.sortingClickEnabled = true,
this.horizontalScrollEnabled = true,
this.rowOnTap,
this.headerOnTap,
this.onColumnsChange,
this.showHeader = true,
this.availableButtons = NsgTableMenuButtonType.allValues,
this.elementEditPageName,
this.initialIsPeriodFilterOpen = false,
this.initialIsSearchStringOpen = false,
this.removeVerticalScrollIfNotNeeded = false,
this.userSettingsController,
this.userSettingsId = '',
this.externaltableKey,
this.forbidDeleting})
: super(key: key);