TCrudConfig<T, K> constructor
const
TCrudConfig<T, K> ({
- Future<
bool> canView(- T
- Future<
bool> canEdit(- T
- Future<
bool> canDelete(- T
- Future<
bool> canArchive(- T
- Future<
bool> canRestore(- T
- String addButtonText = 'Add New',
- List<
TTab< tabs = const [TTab(text: "Active", value: 0), TTab(text: "Archive", value: 1)],int> > - List<
TCrudTableContent< tabContents = const [],T, K> > - String searchPlaceholder = 'Search...',
- bool showActions = true,
- int itemsPerPage = 0,
- List<
int> itemsPerPageOptions = const [5, 10, 15, 25, 50], - List<
TCrudCustomAction< activeActions = const [],T> > - List<
TCrudCustomAction< archiveActions = const [],T> > - List<
Widget> topBarActions = const [],
Implementation
const TCrudConfig({
this.canView,
this.canEdit,
this.canDelete,
this.canArchive,
this.canRestore,
this.addButtonText = 'Add New',
this.tabs = const [TTab(text: "Active", value: 0), TTab(text: "Archive", value: 1)],
this.tabContents = const [],
this.searchPlaceholder = 'Search...',
this.showActions = true,
this.itemsPerPage = 0,
this.itemsPerPageOptions = const [5, 10, 15, 25, 50],
this.activeActions = const [],
this.archiveActions = const [],
this.topBarActions = const [],
});