mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -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.
25 lines
613 B
CUE
25 lines
613 B
CUE
package panels
|
|
|
|
_panel: {
|
|
// Panel title.
|
|
title?: string
|
|
// Description.
|
|
description?: string
|
|
// Whether to display the panel without a background.
|
|
transparent: bool | *false
|
|
// Name of default datasource.
|
|
datasource?: string
|
|
// Grid position.
|
|
gridPos?: _gridPos
|
|
// Panel links.
|
|
links?: [..._panelLink]
|
|
// Name of template variable to repeat for.
|
|
repeat?: string
|
|
// Direction to repeat in if 'repeat' is set.
|
|
// "h" for horizontal, "v" for vertical.
|
|
repeatDirection: *"h" | "v"
|
|
// Panel targets - datasource and query configurations to use as
|
|
// a basis for vizualization.
|
|
targets?: [...{}]
|
|
}
|