SummerDataTable constructor
const
SummerDataTable({
- Key? key,
- required List<
SummerDataColumn> columns, - required SummerDataTableSource source,
- SummerDataTableThemeData? theme,
- double? height,
- double? width,
- bool isLoading = false,
- bool isEmpty = false,
- bool showHeader = true,
- bool bordered = true,
- bool showHover = true,
- String? sortColumnKey,
- bool sortAscending = true,
- SummerSortChange? onSortChange,
- List<
SummerSortSpec> ? sortColumns, - SummerMultiSortChange? onMultiSortChange,
- Map<
String, List< ? filteredColumnValues,Object?> > - SummerFilterChange? onFilterChange,
- SummerRowSelection? selection,
- SummerRowExpandable? expandable,
- ValueChanged<
int> ? onRowTap, - ValueChanged<
int> ? onRowLongPress, - ValueChanged<
int> ? onRowDoubleTap, - int? currentPage,
- int? totalPages,
- VoidCallback? onNextPage,
- VoidCallback? onPreviousPage,
- ValueChanged<
int> ? onPageTap,
Implementation
const SummerDataTable({
super.key,
required this.columns,
required this.source,
this.theme,
this.height,
this.width,
this.isLoading = false,
this.isEmpty = false,
this.showHeader = true,
this.bordered = true,
this.showHover = true,
this.sortColumnKey,
this.sortAscending = true,
this.onSortChange,
this.sortColumns,
this.onMultiSortChange,
this.filteredColumnValues,
this.onFilterChange,
this.selection,
this.expandable,
this.onRowTap,
this.onRowLongPress,
this.onRowDoubleTap,
this.currentPage,
this.totalPages,
this.onNextPage,
this.onPreviousPage,
this.onPageTap,
this.footer,
});