foundation-forms.form.uischema
Home > @genesislcap/foundation-forms > Form > uischema
Form.uischema property
UI schema used to define configuration of the layout and elements in the form Check UiSchema for possible options
Signature:
uischema: UiSchema;
Remarks
If not provided will be autogenerated based on json schema or initial data
Example
Here's a simple example:
const sampleUISchema = {
type: 'VerticalLayout',
elements: [
{
type: 'Control',
scope: '#/properties/QUANTITY',
label: 'Quantity',
},
{
type: 'Control',
scope: '#/properties/INSTRUMENT_ID',
options: {
allOptionsResourceName: 'INSTRUMENT',
valueField: 'INSTRUMENT_ID',
labelField: 'INSTRUMENT_ID',
},
label: 'Instrument',
},
{
type: 'Control',
scope: '#/properties/SIDE',
label: 'Side',
},
],
};