TTableHeader constructor

const TTableHeader({
  1. Key? key,
  2. String buttonText = 'Create',
  3. VoidCallback? onCreatePressed,
  4. TextEditingController? searchController,
  5. ValueChanged<String>? onSearchChanged,
  6. ValueChanged<String>? onSearchSubmitted,
  7. bool showCreateButton = true,
  8. double? width,
  9. List<Widget> actions = const [],
  10. List<Widget> filters = const [],
  11. VoidCallback? onSort,
  12. VoidCallback? onPrintTable,
  13. VoidCallback? onDownloadCSV,
  14. String? sortLabel,
  15. bool showSortButton = false,
  16. bool showDownloadCSVButton = true,
  17. bool showPrintTableButton = true,
})

Implementation

const TTableHeader({
  super.key,
  this.buttonText = 'Create',
  this.onCreatePressed,
  this.searchController,
  this.onSearchChanged,
  this.onSearchSubmitted,
  this.showCreateButton = true,
  this.width,
  this.actions = const [],
  this.filters = const [],
  this.onSort,
  this.onPrintTable,
  this.onDownloadCSV,
  this.sortLabel,
  this.showSortButton = false,
  this.showDownloadCSVButton = true,
  this.showPrintTableButton = true,
});