Skip to main content
Version: Current (v7.0.0-beta.3)

ui:options types the options RJSF's widgets read

Detect​

  • Your custom widget reads an option named accept, expandable, format, hideClearButton, hideNowButton, shape, stars or yearsRange with a type of its own, such as ui:format: { ... }. The type checker rejects the uiSchema value, and reading options.format gives the type below.

UiSchema and UIOptionsType declare these options in both the ui:options and ui:<name> spellings:

OptionType
acceptstring
expandableboolean
format'DMY' | 'MDY' | 'YMD'
hideClearButton, hideNowButtonboolean
shape'star' | 'heart'
starsnumber
yearsRangereadonly [number, number]

Change​

Rename your option, in the uiSchema and in the widget that reads it:

- 'ui:options': { format: { currency: 'USD' } },
+ 'ui:options': { moneyFormat: { currency: 'USD' } },

Verify​

Also read: