Field configuration
Inside your validators files, each field can get a dashboard configuration
How to add fields with specific type ?
validatorsHow to configuration field in dashboard screen ?
// Example Joi.string().meta({ dashboard: {inputProps: JSON.stringify({style: {background: 'red'}}) )}// Exmpale type: Joi.string().valid(Object.values(BUILDINGS_TYPE)).meta({ dashboard: { doc: { inputType: 'boxSelect', options: [ {value: BUILDINGS_TYPE['stadium'], label: 'Stadium'}, {value: BUILDINGS_TYPE['gym'], label: 'Gym'}, ] } } })
Last updated
Was this helpful?