<Field>
Render a form field using form helpers passed to the render function.
Properties
Property | Description |
---|---|
render or children | The render function. This function will be called with the state as it's first parameter. |
from | What store to retrieve state from. |
form | What form to retrieve state from. |
path | The state path to retrieve. Specified as a dotted path string, with support for arrays. Sample: "my.field.path[10].name" |
constant | When true, the Field component will query state and render only once. |
default | The default value when the state is undefined. |
debug | When true, log messages regarding state changes will be printed to the console . |
verbose | When true, verbose log messages are printed to the console . |
id | Debug log uses this to identify components |
onMount | Called with the current state when the component mounts. |
onUnmount | Called with the current state when the component unmounts. |
type | When type is set to checkbox or radio , the value is emitted as a checked attribute instead of a value attribute. |
Live Editor
Result
Loading...