Optional
addOptional
childrenIf the field widget accepts the children, then you can specify it by this.
Optional
classOptional
clearIn the grid layout system, if the field allows other fields in left
, right
or both
position. For example, if clear is right
, then no other fields in the right
even
there's still space (by columns).
Optional
colNice form provides the grid layout system, colSpan is used to specify how many columns of the field.
Optional
colonOptional
conditionA function returns true or false to determine if the field should be rendered. It's convenient to show/hide fields dynamically.
If you need complex logic, you can modify meta fields directlly after meta is constructed.
Optional
dependenciesSet up dependencies
field.
When dependencies field update and current field is touched,
will trigger validate rules and render.
Optional
disabledWhether the field is disabled.
Optional
extraOptional
extraThe extra node of the field. Appended just after the field component. You usually need to use css to position it.
Optional
fieldOptional
fieldNo need anymore
Optional
fullWhether the field is full width of the space.
Optional
getOptional
getRest
...args: EventArgsOptional
getOptional
hasOptional
helpHelp information of the field, consumed by adapter.
Optional
hiddenOptional
htmlOptional
idOptional
initialThe initial value of the field.
Optional
Private
isPassed by Form.List props. Do not use since it will break by path check.
Optional
Private
isPassed by Form.List props. Do not use since it will break by path check.
The field key. It's used to identify the field. It's used as the field name if the name is not defined. In this case, the name is generated by splitting the key by '.'. For example: if the key is 'user.name', the name will be ['user', 'name']. So it's convenient to support nested object.
Note: if you want a dot .
to be part of the field name, you should specify the name explicitly.
For example: name: ['user', 'name.with.dot']
Optional
labelThe label of the field, adapters should implement the support for labels.
Optional
labelOptional
labelOptional
labelThe label width.
Optional
messageOptional
nameThe name of the field, its format may be different for different adapters. For example, in antd, it's an array of path. See API doc of the library you use.
Optional
noOptional
normalizeOptional
onOptional
onOptional
optionsOnly for field widget which consumes a list data. For example: select, checkbox group, radio group, etc.
Optional
prefixOptional
preserveOptional
renderYou can use render
method to render any content of the field in both edit and view mode. It will replaces
the logic provided by adapters. You need to handle the edit/view mode in the function.
Optional
renderYou can use renderView
method to render the widget (without label).
Optional
requiredWhether the field is required.
Optional
rootOptional
rowNice form provides the grid layout system, colSpan is used to specify how many rows of the field.
Optional
rulesOptional
shouldOptional
statusOptional
styleOptional
tooltipOptional
triggerOptional
validateTrigger will after configured milliseconds.
Optional
validateOptional
validateOptional
validateOptional
valueOptional
viewIf the field is in view mode, it will use viewWidget to render the field. Note that this is different with readOnly property which passes readOnly to the field component.
Optional
viewThe widget component or widget id in view mode.
Optional
viewThe view mode widget component props.
Optional
widgetThe widget component or widget id in edit mode.
Optional
widgetThe edit mode widget component props.
Optional
widgetThe widget type.
Optional
wrapperGenerated using TypeDoc
The form field meta. Note that this is the base meta that should be implmented by all adapters. But different adapters may extend the basic meta to have more options.