Grafana Schema: Extend the VariableHide enum (#110579)

* feat: extend the `VariableHide` enum with a new option

* feat: extend the `VariableHide` for v1
This commit is contained in:
Levente Balogh
2025-09-08 09:08:09 +02:00
committed by GitHub
parent 1fd4611487
commit 2f558e8cb7
11 changed files with 26 additions and 21 deletions
+5 -4
View File
@@ -766,13 +766,14 @@ const (
)
// Determine if the variable shows on dashboard
// Accepted values are 0 (show label and value), 1 (show value only), 2 (show nothing).
// Accepted values are 0 (show label and value), 1 (show value only), 2 (show nothing), 3 (show under the controls dropdown menu).
type VariableHide int64
const (
VariableHideDontHide VariableHide = 0
VariableHideHideLabel VariableHide = 1
VariableHideHideVariable VariableHide = 2
VariableHideDontHide VariableHide = 0
VariableHideHideLabel VariableHide = 1
VariableHideHideVariable VariableHide = 2
VariableHideInControlsMenu VariableHide = 3
)
// Option to be selected in a variable.