TDataTable<T> constructor
const
TDataTable<T> ({
- Key? key,
- required List<
TTableHeader< headers,T> > - List<
T> ? items, - int itemsPerPage = 10,
- List<
int> itemsPerPageOptions = const [5, 10, 15, 25, 50], - int searchDelay = 2500,
- bool loading = false,
- String? search,
- TLoadListener<
T> ? onLoad, - TTableDecoration decoration = const TTableDecoration(),
- String itemToString(
- T
- ValueNotifier<
String> ? searchNotifier, - TPaginationController? controller,
Implementation
const TDataTable({
super.key,
required this.headers,
this.items,
this.itemsPerPage = 10,
this.itemsPerPageOptions = const [5, 10, 15, 25, 50],
this.searchDelay = 2500,
this.loading = false,
this.search,
this.onLoad,
this.decoration = const TTableDecoration(),
this.itemToString,
this.searchNotifier,
this.controller,
});