Skip to content

API Select Widget #166

Answered by elbakerino
nags-git asked this question in Q&A
Discussion options

You must be logged in to vote

There are no API features includes for fetching values, you would need to write an own plugin or widget.

  • if you don't need to validate it, a widget would be the easiest
  • if you need to validate it you need to use a widget plugin, you need to create a keyword like api=country in you schema, then load it accordingly to your schemas definition and also inject it into the schema.

You could use fetch or e.g. existing redux stores.

Note: if you fetch it like this here, it will fetch it for every instance the widget is used! With redux or providers it can be written that it only loads it once.

import { MuiWidgetBinding, Select } from '@ui-schema/ds-material'
import { useProgress, PROGRESS_DONE, 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nags-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants