XDataTable constructor
const
XDataTable({
- Key? key,
- bool showSelect = false,
- dynamic onSelectAll(
- bool? value
- dynamic onSelect()?,
- dynamic onTabRow()?,
- dynamic onSort(
- dynamic value
- List<
DatatableHeader> headers = const [], - List<
Map< ? source,String, dynamic> > - List<
Map< ? selecteds,String, dynamic> > - Widget? title,
- List<
Widget> ? actions, - String? sortColumn,
- bool? sortAscending,
- bool isLoading = false,
- bool autoHeight = true,
- bool hideUnderline = true,
- bool commonMobileView = false,
- bool isExpandRows = true,
- List<
bool> ? expanded, - Widget dropContainer()?,
- dynamic onChangedRow(
- Map<
String, dynamic> value, - DatatableHeader header
- Map<
- dynamic onSubmittedRow(
- Map<
String, dynamic> value, - DatatableHeader header
- Map<
- List<
ScreenSize> reponseScreenSizes = const [ScreenSize.xs, ScreenSize.sm, ScreenSize.md], - BoxDecoration? headerDecoration,
- BoxDecoration? rowDecoration,
- BoxDecoration? selectedDecoration,
- TextStyle? headerTextStyle,
- TextStyle? rowTextStyle,
- TextStyle? selectedTextStyle,
- Duration timeToSubtract = const Duration(seconds: 0),
Implementation
const XDataTable({
Key? key,
this.showSelect = false,
this.onSelectAll,
this.onSelect,
this.onTabRow,
this.onSort,
this.headers = const [],
this.source,
this.selecteds,
this.title,
this.actions,
this.footers,
this.sortColumn,
this.sortAscending,
this.isLoading = false,
this.autoHeight = true,
this.hideUnderline = true,
this.commonMobileView = false,
this.isExpandRows = true,
this.expanded,
this.dropContainer,
this.onChangedRow,
this.onSubmittedRow,
this.reponseScreenSizes = const [ScreenSize.xs, ScreenSize.sm, ScreenSize.md],
this.headerDecoration,
this.rowDecoration,
this.selectedDecoration,
this.headerTextStyle,
this.rowTextStyle,
this.selectedTextStyle,
this.timeToSubtract = const Duration(seconds: 0),
}) : super(key: key);