NsgTable constructor

NsgTable({
  1. Key? key,
  2. bool hideCellsBackground = false,
  3. bool hideLines = false,
  4. NsgTableStyle style = const NsgTableStyle(),
  5. int rowsMaxCount = 20,
  6. required NsgDataController<NsgDataItem> controller,
  7. double? rowFixedHeight,
  8. int? cellMaxLines = 4,
  9. int? cellFixedLines,
  10. bool showTotals = false,
  11. List<NsgTableColumn> columns = const [],
  12. String? periodFilterLabel = "Фильтр по периоду",
  13. bool showBoolIconsWithMonochromeColors = false,
  14. IconData iconTrue = Icons.check,
  15. IconData iconFalse = Icons.close,
  16. bool showIconTrue = true,
  17. bool showIconFalse = true,
  18. bool selectCellOnHover = false,
  19. Color? headerBackColor,
  20. Color? headerColor,
  21. bool sortingClickEnabled = true,
  22. bool horizontalScrollEnabled = true,
  23. dynamic rowOnTap(
    1. NsgDataItem?,
    2. String
    )?,
  24. bool headerOnTap(
    1. String
    )?,
  25. dynamic onColumnsChange(
    1. List<NsgTableColumn>
    )?,
  26. bool showHeader = true,
  27. List<NsgTableMenuButtonType> availableButtons = NsgTableMenuButtonType.allValues,
  28. String? elementEditPageName,
  29. bool initialIsPeriodFilterOpen = false,
  30. bool initialIsSearchStringOpen = false,
  31. bool removeVerticalScrollIfNotNeeded = false,
  32. NsgUserSettingsController<NsgDataItem>? userSettingsController,
  33. String userSettingsId = '',
  34. NsgUpdateKey? externaltableKey,
  35. bool forbidDeleting(
    1. 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);