|
|
|
@ -49,12 +49,12 @@ export const plugin = new PanelPlugin<PanelOptions>(Panel).setPanelOptions((buil
|
|
|
|
|
category: ['Value'], |
|
|
|
|
showIf: (config) => config.visualizationType === Pod.GAUGE, |
|
|
|
|
}) |
|
|
|
|
// TODO: defaults?
|
|
|
|
|
.addCustomEditor({ |
|
|
|
|
id: 'min', |
|
|
|
|
name: 'Min', |
|
|
|
|
path: 'gauge.min', |
|
|
|
|
category: ['Extremum'], |
|
|
|
|
defaultValue: { useMetric: false, value: 0 }, |
|
|
|
|
showIf: (config) => config.visualizationType === Pod.GAUGE, |
|
|
|
|
editor: UseMetricEditor as any, |
|
|
|
|
}) |
|
|
|
@ -63,6 +63,7 @@ export const plugin = new PanelPlugin<PanelOptions>(Panel).setPanelOptions((buil
|
|
|
|
|
name: 'Max', |
|
|
|
|
path: 'gauge.max', |
|
|
|
|
category: ['Extremum'], |
|
|
|
|
defaultValue: { useMetric: false }, |
|
|
|
|
showIf: (config) => config.visualizationType === Pod.GAUGE, |
|
|
|
|
editor: UseMetricEditor as any, |
|
|
|
|
}) |
|
|
|
|