MhItemsViewColumnDef<T> class

Constructors

MhItemsViewColumnDef.new({required String id, String? header, Widget buildColumnHeader(BuildContext, MhItemsViewState<T>)?, double? columnWidth, CdItemsViewColumnTypes? columnType, Widget buildDisplay(BuildContext context, T item, MhItemsViewDisplayInfo displayInfo)?, Object? getDisplayValue(T)?, Alignment alignment = Alignment.center, EdgeInsetsGeometry? padding, Widget buildEdit(T)?, Object? getEditValue(T)?, void setEditValue(T, Object?)?, bool allowEdit(T item)?, bool allowSorting = false, Object getSortValue(T item)?})

Properties

alignment Alignment
getter/setter pair
allowEdit bool Function(T item)?
getter/setter pair
allowSorting bool
If true the user can sort the Items by cklicking on the sort Icon in the header
getter/setter pair
areAllSelected bool? Function()?
getter/setter pair
columnType CdItemsViewColumnTypes
getter/setter pair
columnWidth double
getter/setter pair
columnWidthAuto bool
no setter
getSortValue Object Function(T item)?
if given, the value for sorting is used from this function, else getDisplayValue is used
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
isSelected bool Function(T item)?
getter/setter pair
padding EdgeInsetsGeometry?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setAllSelected ↔ void Function(bool isSelected)?
getter/setter pair
setSelected ↔ void Function(T item, bool isSelected)?
getter/setter pair
showSortIconOnHover bool
If true the Sort Icon is shown on hover and not always
getter/setter pair
virtualColumnWidth double
getter/setter pair

Methods

buildColumnHeader(BuildContext context, MhItemsViewState<T> state) Widget
buildValue(BuildContext context, T item, MhItemsViewDisplayInfo displayInfo) Widget
canEdit(T item) bool
getDisplayValueBool(T item) bool?
getEditValue(T item) Object?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setEditValue(MhItemsViewState<T> state, T item, String value) → void
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildDefault<T>() MhItemsViewColumnDef<T>