CmsTextEntry class
CmsEntry for handling basic String values
Constructors
-
CmsTextEntry({required String key, String? label, CmsEntryModifier modifier = const CmsEntryModifier(), int maxLength = 500, List<
TextInputFormatter> ? formatters, int maxLines = 1, TextOverflow? overflow, int flex = 2, String previewBuilder(String?)?})
Properties
- editable → bool
-
no setterinherited
- expanded → bool
-
no setterinherited
- 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
-
formatters
→ List<
TextInputFormatter> ? -
final
- 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 JsonMapExtensionsfinal - 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 - maxLength → int
-
final
- maxLines → int
-
final
- modifier → CmsEntryModifier
-
Modifies the behavior of the CmsEntry
final
- overflow → TextOverflow?
-
final
- pinned → bool
-
no setterinherited
- previewBuilder → (String Function(String?)?)
-
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 FutureOr< String> ? value, required void onChanged(String? 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, String? value) → Widget -
Preview of the value shown in the
CmsTable
override -
fromJson(
Object? json) → String? -
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(
String? 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