TDataTable<T> constructor

const TDataTable<T>({
  1. Key? key,
  2. required List<TTableHeader<T>> headers,
  3. List<T>? items,
  4. int itemsPerPage = 10,
  5. List<int> itemsPerPageOptions = const [5, 10, 15, 25, 50],
  6. int searchDelay = 2500,
  7. bool loading = false,
  8. String? search,
  9. TLoadListener<T>? onLoad,
  10. TTableDecoration decoration = const TTableDecoration(),
  11. String itemToString(
    1. T
    )?,
  12. ValueNotifier<String>? searchNotifier,
  13. 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,
});