<FormButtons>
Render form buttons using form helpers passed to the render function.
If this component doesn't have a parent Form
component, you must use the form
and store
properties to choose a form.
Properties
Property | Description |
---|---|
children | Render function, see below |
from or store | What store to retrieve state from. |
form | What form to retrieve state from. |
throttle | Milliseconds to throttle change requests |
debounce | Milliseconds to debounce change requests |
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. |
render({ submit, reset })
The render function receives an object containing form button attributes to use on button elements.
Button | Attribute | Description |
---|---|---|
submit | onClick | Event handler |
disabled | Is submit button disabled | |
reset | onClick | Event handler |
disabled | Is reset button disabled |
Live Editor
Result
Loading...