Signature

Import

Properties

Array of standard field config properties that should not be available in the panel

Signature

  1. {
  2. disableStandardOptions: [FieldConfigProperty.Min, FieldConfigProperty.Max, FieldConfigProperty.Unit]
  3. }

Signature

  1. {
  2. [FieldConfigProperty.Decimals]: {
  3. defaultValue: 3
  4. }
  5. }

Function that allows custom field config properties definition.

  1. useCustomConfig: builder => {
  2. builder
  3. .addNumberInput({
  4. id: 'shapeBorderWidth',
  5. name: 'Border width',
  6. description: 'Border width of the shape',
  7. min: 1,
  8. },
  9. })
  10. .addSelect({
  11. id: 'displayMode',
  12. name: 'Display mode',
  13. description: 'How the shape shout be rendered'
  14. settings: {
  15. options: [{value: 'fill', label: 'Fill' }, {value: 'transparent', label: 'Transparent }]
  16. },