mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
3d33de1751
Lead all top-level properties that we do not intend to export with an underscore. In 2.2.0, only definitions starting with a capital letter were exported. As well, properties with a leading underscore were not visible to an entire package - just within the same file. 3.0.0 still considers them hidden, however, they are now visible to an entire package.
34 lines
757 B
CUE
34 lines
757 B
CUE
package variables
|
|
|
|
_variable: {
|
|
// Currently selected value.
|
|
current: {
|
|
selected: bool | *false
|
|
text: string | [...string]
|
|
value: string | [...string]
|
|
}
|
|
// Whether to hide the label and variable.
|
|
// * 0 - Show all.
|
|
// * 1 - Hide label.
|
|
// * 2 - Hide label and variable.
|
|
hide: int & >=0 & <=2 | *0
|
|
// Enable include all option.
|
|
includeAll: bool | *false
|
|
// When includeAll is enabled, this sets its value.
|
|
allValue?: string
|
|
// Optional display name.
|
|
label?: string
|
|
// Allows mutltiple values to be selected at the same time.
|
|
multi: bool | *false
|
|
// Variable name.
|
|
name: string
|
|
// Options for variable.
|
|
options: [...{
|
|
selected: bool
|
|
text: string
|
|
value: string
|
|
}]
|
|
// Skip URL sync.
|
|
skipUrlSync: bool | *false
|
|
}
|