Expand description
Resolvers for JSON-UI component trees.
Walks a JsonUiView’s component tree and resolves action handler
references to URLs and validation errors to form field error messages.
Both resolvers keep ferro-json-ui decoupled from the framework.
Functions§
- resolve_
actions - Walk the entire component tree and resolve all action handler names to URLs.
- resolve_
actions_ strict - Walk the entire component tree and resolve all actions, returning an error for any handler that cannot be resolved.
- resolve_
errors - Walk the component tree and set the first validation error message on each matching form field component (Input, Select, Checkbox, Switch).
- resolve_
errors_ all - Walk the component tree and set all validation error messages (joined with
". ") on each matching form field component.