|
|
|
@ -6,7 +6,8 @@ export const plugin = new PanelPlugin<PanelOptions>(Panel).setPanelOptions((buil
|
|
|
|
|
return builder |
|
|
|
|
.addRadio({ |
|
|
|
|
path: 'visualizationType', |
|
|
|
|
name: 'Visualization type', |
|
|
|
|
name: 'Pod', |
|
|
|
|
category: ['Visualization'], |
|
|
|
|
defaultValue: Pod.GAUGE, |
|
|
|
|
settings: { |
|
|
|
|
options: [ |
|
|
|
@ -28,37 +29,16 @@ export const plugin = new PanelPlugin<PanelOptions>(Panel).setPanelOptions((buil
|
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
.addTextInput({ |
|
|
|
|
path: 'text', |
|
|
|
|
name: 'Simple text option', |
|
|
|
|
description: 'Description of panel option', |
|
|
|
|
defaultValue: 'Default value of text input option', |
|
|
|
|
}) |
|
|
|
|
.addBooleanSwitch({ |
|
|
|
|
path: 'showSeriesCount', |
|
|
|
|
name: 'Show series counter', |
|
|
|
|
defaultValue: false, |
|
|
|
|
.addNumberInput({ |
|
|
|
|
path: 'gauge.min', |
|
|
|
|
name: 'Min', |
|
|
|
|
category: ['Gauge'], |
|
|
|
|
showIf: (config) => config.visualizationType === Pod.GAUGE, |
|
|
|
|
}) |
|
|
|
|
.addRadio({ |
|
|
|
|
path: 'seriesCountSize', |
|
|
|
|
defaultValue: 'sm', |
|
|
|
|
name: 'Series counter size', |
|
|
|
|
settings: { |
|
|
|
|
options: [ |
|
|
|
|
{ |
|
|
|
|
value: 'sm', |
|
|
|
|
label: 'Small', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value: 'md', |
|
|
|
|
label: 'Medium', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value: 'lg', |
|
|
|
|
label: 'Large', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
.addNumberInput({ |
|
|
|
|
path: 'gauge.max', |
|
|
|
|
name: 'Max', |
|
|
|
|
category: ['Gauge'], |
|
|
|
|
showIf: (config) => config.visualizationType === Pod.GAUGE, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|