TCrudConfig<T, K> class
Constructors
-
TCrudConfig({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)], List<int> >TCrudTableContent< tabContents = const [], String searchPlaceholder = 'Search...', bool showActions = true, int itemsPerPage = 10, List<T, K> >int> itemsPerPageOptions = const [5, 10, 15, 25, 50], List<TCrudCustomAction< activeActions = const [], List<T> >TCrudCustomAction< archiveActions = const [], List<T> >Widget> topBarActions = const [], TListInteraction<T> ? interaction}) -
const
Properties
-
activeActions
→ List<
TCrudCustomAction< T> > -
final
- addButtonText → String
-
final
-
archiveActions
→ List<
TCrudCustomAction< T> > -
final
-
canArchive
→ Future<
bool> Function(T)? -
final
-
canDelete
→ Future<
bool> Function(T)? -
final
-
canEdit
→ Future<
bool> Function(T)? -
final
-
canRestore
→ Future<
bool> Function(T)? -
final
-
canView
→ Future<
bool> Function(T)? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
interaction
→ TListInteraction<
T> ? -
final
- itemsPerPage → int
-
final
-
itemsPerPageOptions
→ List<
int> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchPlaceholder → String
-
final
- showActions → bool
-
final
-
tabContents
→ List<
TCrudTableContent< T, K> > -
final
-
tabs
→ List<
TTab< int> > -
final
-
topBarActions
→ List<
Widget> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited