mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 19:52:33 -06:00
VizTooltip: Hide tooltip options from when tooltip is hidden (#89864)
This commit is contained in:
parent
3edca2e2fd
commit
ad2b5a02a1
@ -55,6 +55,7 @@ export function addTooltipOptions<T extends OptionsWithTooltip>(
|
||||
settings: {
|
||||
integer: true,
|
||||
},
|
||||
showIf: (options: T) => options.tooltip?.mode !== TooltipDisplayMode.None,
|
||||
});
|
||||
}
|
||||
|
||||
@ -66,6 +67,7 @@ export function addTooltipOptions<T extends OptionsWithTooltip>(
|
||||
settings: {
|
||||
integer: true,
|
||||
},
|
||||
showIf: (options: T) => options.tooltip?.mode !== TooltipDisplayMode.None,
|
||||
})
|
||||
.addNumberInput({
|
||||
path: 'tooltip.maxHeight',
|
||||
|
@ -424,6 +424,7 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(HeatmapPanel)
|
||||
settings: {
|
||||
integer: true,
|
||||
},
|
||||
showIf: (opts) => opts.tooltip.mode !== TooltipDisplayMode.None,
|
||||
});
|
||||
|
||||
builder.addNumberInput({
|
||||
|
Loading…
Reference in New Issue
Block a user