TDataTable<T> constructor
const
TDataTable<T> ({
- Key? key,
- required List<
TTableHeader< headers,T> > - TTableDecoration decoration = const TTableDecoration(),
- TTableController<
T> ? tableController, - TTableInteractionConfig interactionConfig = const TTableInteractionConfig(),
- bool shrinkWrap = false,
- 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, - String itemToString(
- T
- ValueNotifier<
String> ? searchNotifier, - TPaginationController? controller,
- bool expandable = false,
- bool singleExpand = true,
- Widget expandedBuilder()?,
- bool selectable = false,
- bool singleSelect = false,
- bool infiniteScroll = false,
Implementation
const TDataTable({
super.key,
required this.headers,
this.decoration = const TTableDecoration(),
this.tableController,
this.interactionConfig = const TTableInteractionConfig(),
this.shrinkWrap = false,
this.items,
this.itemsPerPage = 10,
this.itemsPerPageOptions = const [5, 10, 15, 25, 50],
this.searchDelay = 2500,
this.loading = false,
this.search,
this.onLoad,
this.itemToString,
this.searchNotifier,
this.controller,
// Expandable
this.expandable = false,
this.singleExpand = true,
this.expandedBuilder,
// Selectable
this.selectable = false,
this.singleSelect = false,
// Infinite scroll
this.infiniteScroll = false,
});