Open
Description
Use case: enum options are derived from other fields and queried from an API.
Example: https://jsonforms.discourse.group/t/dynamic-enum-values/837
Example: Country, Region, City
- Define API and place in React context
- Consume context in custom renderer
- Trigger API to get country values -> Render them
- In Region renderer: use
useJsonForms()
to resolve country data - Use country data against API to resolve regions
- etc.
Optional: data resolving and fetch utils can be provided by a HOC