VizTooltip: Hide tooltip options from when tooltip is hidden (#89864)

This commit is contained in:
Adela Almasan 2024-06-27 15:49:20 -06:00 committed by GitHub
parent 3edca2e2fd
commit ad2b5a02a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -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',

View File

@ -424,6 +424,7 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(HeatmapPanel)
settings: {
integer: true,
},
showIf: (opts) => opts.tooltip.mode !== TooltipDisplayMode.None,
});
builder.addNumberInput({