Signature
Import
Properties
Array of standard field config properties that should not be available in the panel
Signature
{
disableStandardOptions: [FieldConfigProperty.Min, FieldConfigProperty.Max, FieldConfigProperty.Unit]
}
Signature
{
[FieldConfigProperty.Decimals]: {
defaultValue: 3
}
}
Function that allows custom field config properties definition.
useCustomConfig: builder => {
builder
.addNumberInput({
id: 'shapeBorderWidth',
name: 'Border width',
description: 'Border width of the shape',
min: 1,
},
})
.addSelect({
id: 'displayMode',
name: 'Display mode',
description: 'How the shape shout be rendered'
settings: {
options: [{value: 'fill', label: 'Fill' }, {value: 'transparent', label: 'Transparent }]
},