CmsToManyDropdownEntry class
CmsEntry for handling toMany relationships
Constructors
-
CmsToManyDropdownEntry({required CmsToManyDelegate delegate, required List<
String> filterFields, required String fieldDisplayBuilder(JsonMap), String previewDisplayBuilder(JsonMap)?, required String label, CmsEntryModifier modifier = const CmsEntryModifier(pinned: false), int flex = 4})
Properties
- delegate → CmsToManyDelegate
-
server-layer for handling relationships operations
final
- editable → bool
-
no setterinherited
- expanded → bool
-
no setterinherited
- fieldDisplayBuilder → String Function(JsonMap)
-
Builder for display of values in the buildEditField /
CmsItemManagementView
final -
filterFields
→ List<
String> -
final
- fixedLabel → String
-
Real display of the field. If null, last segment of key is displayed
no setterinherited
- fixedLabelRequired → String
-
Adds * at the end of the label
no setterinherited
- flex → int
-
- Defines size of the
CmsTableItem
in theCmsTable
final - Defines size of the
- hashCode → int
-
The hash code for this object.
no setterinherited
- initializable → bool
-
no setterinherited
- key → String
-
- key is a path to the value in JsonMap. It may be staggered e.g.
user.data.image
. To see how it works check JsonMapExtensionsno setteroverride - key is a path to the value in JsonMap. It may be staggered e.g.
- label → String
-
- label displays the name of the entry. To find out more check fixedLabel
final - modifier → CmsEntryModifier
-
Modifies the behavior of the CmsEntry
final
- pinned → bool
-
no setterinherited
- previewDisplayBuilder → (String Function(JsonMap)?)
-
Builder for display of loaded values in the buildPreview /
CmsTable
final - required → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortable → bool
-
no setterinherited
- sortInvertNulls → bool
-
no setterinherited
Methods
-
buildEditField(
{required BuildContext context, required Object? value, required void onChanged(JsonMap value)}) → Widget -
Builder for edit/create flow. It provides
context
, currentvalue
andonChanged
method. It is recommended to wrap it in the CmsFieldWrapper.override -
buildPreview(
BuildContext context, Object value) → Widget -
Preview of the value shown in the
CmsTable
override -
fromJson(
Object? json) → Object? -
simple fromJson method, e.g. int.parse(json.toString) for an int value.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onSaved(
) → Future< void> -
inherited
-
toJson(
Object value) → Object? -
simple toJson method, e.g. 12.toString for an int value.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited