mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Re-add RowHeight option to StatusHistory (#62293)
This commit is contained in:
parent
70f109526a
commit
1464dd4095
@ -34,6 +34,7 @@ title: StatusHistoryPanelCfg kind
|
|||||||
| Property | Type | Required | Description |
|
| Property | Type | Required | Description |
|
||||||
|-------------|--------|----------|-----------------------------------------------------------|
|
|-------------|--------|----------|-----------------------------------------------------------|
|
||||||
| `colWidth` | number | No | Controls the column width Default: `0.9`. |
|
| `colWidth` | number | No | Controls the column width Default: `0.9`. |
|
||||||
|
| `rowHeight` | number | No | Set the height of the rows Default: `0.9`. |
|
||||||
| `showValue` | string | No | TODO docs Possible values are: `auto`, `never`, `always`. |
|
| `showValue` | string | No | TODO docs Possible values are: `auto`, `never`, `always`. |
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,6 +56,16 @@ export const plugin = new PanelPlugin<PanelOptions, PanelFieldConfig>(StatusHist
|
|||||||
},
|
},
|
||||||
defaultValue: VisibilityMode.Auto,
|
defaultValue: VisibilityMode.Auto,
|
||||||
})
|
})
|
||||||
|
.addSliderInput({
|
||||||
|
path: 'rowHeight',
|
||||||
|
name: 'Row height',
|
||||||
|
defaultValue: 0.9,
|
||||||
|
settings: {
|
||||||
|
min: 0,
|
||||||
|
max: 1,
|
||||||
|
step: 0.01,
|
||||||
|
},
|
||||||
|
})
|
||||||
.addSliderInput({
|
.addSliderInput({
|
||||||
path: 'colWidth',
|
path: 'colWidth',
|
||||||
name: 'Column width',
|
name: 'Column width',
|
||||||
|
@ -30,6 +30,8 @@ composableKinds: PanelCfg: {
|
|||||||
ui.OptionsWithTooltip
|
ui.OptionsWithTooltip
|
||||||
ui.OptionsWithTimezones
|
ui.OptionsWithTimezones
|
||||||
|
|
||||||
|
//Set the height of the rows
|
||||||
|
rowHeight: float32 & >=0 & <=1 | *0.9
|
||||||
//Show values on the columns
|
//Show values on the columns
|
||||||
showValue: ui.VisibilityMode | *"auto"
|
showValue: ui.VisibilityMode | *"auto"
|
||||||
//Controls the column width
|
//Controls the column width
|
||||||
|
@ -17,6 +17,10 @@ export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithToolti
|
|||||||
* Controls the column width
|
* Controls the column width
|
||||||
*/
|
*/
|
||||||
colWidth?: number;
|
colWidth?: number;
|
||||||
|
/**
|
||||||
|
* Set the height of the rows
|
||||||
|
*/
|
||||||
|
rowHeight: number;
|
||||||
/**
|
/**
|
||||||
* Show values on the columns
|
* Show values on the columns
|
||||||
*/
|
*/
|
||||||
@ -25,6 +29,7 @@ export interface PanelOptions extends ui.OptionsWithLegend, ui.OptionsWithToolti
|
|||||||
|
|
||||||
export const defaultPanelOptions: Partial<PanelOptions> = {
|
export const defaultPanelOptions: Partial<PanelOptions> = {
|
||||||
colWidth: 0.9,
|
colWidth: 0.9,
|
||||||
|
rowHeight: 0.9,
|
||||||
showValue: ui.VisibilityMode.Auto,
|
showValue: ui.VisibilityMode.Auto,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user