You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
717 B
33 lines
717 B
import { PanelOptions } from './types'; |
|
|
|
import { Panel } from './components/Panel'; |
|
|
|
import { PanelPlugin } from '@grafana/data'; |
|
|
|
export const plugin = new PanelPlugin<PanelOptions>(Panel).setPanelOptions((builder) => { |
|
return ( |
|
builder |
|
.addRadio({ |
|
path: 'visualizationType', |
|
name: 'Pod', |
|
category: ['Visualization'], |
|
defaultValue: '1', |
|
settings: { |
|
options: [ |
|
{ |
|
label: 'Gauge', |
|
value: '1', |
|
}, |
|
{ |
|
label: 'Line', |
|
value: '2', |
|
}, |
|
{ |
|
label: 'Bar', |
|
value: '3', |
|
}, |
|
], |
|
}, |
|
}) |
|
) |
|
});
|
|
|