ResusableDatagridW<T> constructor
ResusableDatagridW<T> ({
- Key? key,
- required List<
T> data, - required List<
Field< fields,T> > - required DateTime? lastSaveDate,
- required double headerHeight,
- void onRowClick(
- T
- void onCreateClick()?,
- double rowHeight = 30,
- Field<
T> ? identityFieldId = null, - void onSelectHeaderButton()?,
- String selectName = "select",
- List<
T> ? selectedIds, - void onCheckboxChange()?,
- double? maxHeight,
- double fontSize = 12,
- double columnSpacing = 10,
- double horizontalMargin = 10,
fields
definition of fields to display
lastSaveDate
change this field to update the list with new data (can't do a compare of thousands of records nicely)
Implementation
ResusableDatagridW({
Key? key,
required this.data,
required this.fields,
required this.lastSaveDate,
required this.headerHeight,
required this.footerHeight,
this.onRowClick,
this.onCreateClick,
this.rowHeight = 30,
this.identityFieldId = null,
this.onSelectHeaderButton,
this.selectName = "select",
this.selectedIds,
this.onCheckboxChange,
this.maxHeight,
this.fontSize = 12,
this.columnSpacing = 10,
this.horizontalMargin = 10,
}) : super(key: key);