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 ?
// ExampleJoi.string().meta({ dashboard: {inputProps: JSON.stringify({style: {background: 'red'}}) )}// Exmpaletype: 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', i18nLabels: { heIL: 'חדר כושר' }}, ] } }})
Last updated
Was this helpful?