mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Re-add RowHeight option to StatusHistory (#62293)
This commit is contained in:
@@ -56,6 +56,16 @@ export const plugin = new PanelPlugin<PanelOptions, PanelFieldConfig>(StatusHist
|
||||
},
|
||||
defaultValue: VisibilityMode.Auto,
|
||||
})
|
||||
.addSliderInput({
|
||||
path: 'rowHeight',
|
||||
name: 'Row height',
|
||||
defaultValue: 0.9,
|
||||
settings: {
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
})
|
||||
.addSliderInput({
|
||||
path: 'colWidth',
|
||||
name: 'Column width',
|
||||
|
||||
@@ -30,6 +30,8 @@ composableKinds: PanelCfg: {
|
||||
ui.OptionsWithTooltip
|
||||
ui.OptionsWithTimezones
|
||||
|
||||
//Set the height of the rows
|
||||
rowHeight: float32 & >=0 & <=1 | *0.9
|
||||
//Show values on the columns
|
||||
showValue: ui.VisibilityMode | *"auto"
|
||||
//Controls the column width
|
||||
|
||||
@@ -17,6 +17,10 @@ export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithToolti
|
||||
* Controls the column width
|
||||
*/
|
||||
colWidth?: number;
|
||||
/**
|
||||
* Set the height of the rows
|
||||
*/
|
||||
rowHeight: number;
|
||||
/**
|
||||
* Show values on the columns
|
||||
*/
|
||||
@@ -25,6 +29,7 @@ export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithToolti
|
||||
|
||||
export const defaultPanelOptions: Partial<PanelOptions> = {
|
||||
colWidth: 0.9,
|
||||
rowHeight: 0.9,
|
||||
showValue: ui.VisibilityMode.Auto,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user