Files
Drew Slobodnjak 4f2bbd490f Canvas: Add PUT to Canvas Button (#76844)
* Add PUT to canvas button

* Update cue file to include PUT

* Re run make gen cue

* fix gen-cue

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-23 09:24:34 -07:00

12 KiB

keywords labels title
grafana
schema
products
cloud
enterprise
oss
CanvasPanelCfg kind

Both documentation generation and kinds schemas are in active development and subject to change without prior notice.

CanvasPanelCfg

Maturity: experimental

Version: 0.0

Property Type Required Default Description
BackgroundConfig object Yes
BackgroundImageSize string Yes Possible values are: original, contain, cover, fill, tile.
CanvasConnection object Yes
CanvasElementOptions object Yes
ConnectionCoordinates object Yes
ConnectionPath string Yes Possible values are: straight.
Constraint object Yes
HorizontalConstraint string Yes Possible values are: left, right, leftright, center, scale.
HttpRequestMethod string Yes Possible values are: GET, POST, PUT.
LineConfig object Yes
Options object Yes
Placement object Yes
VerticalConstraint string Yes Possible values are: top, bottom, topbottom, center, scale.

BackgroundConfig

Property Type Required Default Description
color ColorDimensionConfig No
image ResourceDimensionConfig No Links to a resource (image/svg path)
size string No Possible values are: original, contain, cover, fill, tile.

ColorDimensionConfig

It extends BaseDimensionConfig.

Property Type Required Default Description
field string No (Inherited from BaseDimensionConfig)
fixed: T -- will be added by each element
fixed string No

BaseDimensionConfig

Property Type Required Default Description
field string No fixed: T -- will be added by each element

ResourceDimensionConfig

Links to a resource (image/svg path)

It extends BaseDimensionConfig.

Property Type Required Default Description
mode string Yes Possible values are: fixed, field, mapping.
field string No (Inherited from BaseDimensionConfig)
fixed: T -- will be added by each element
fixed string No

CanvasConnection

Property Type Required Default Description
path string Yes Possible values are: straight.
source ConnectionCoordinates Yes
target ConnectionCoordinates Yes
color ColorDimensionConfig No
size ScaleDimensionConfig No
targetName string No

ConnectionCoordinates

Property Type Required Default Description
x number Yes
y number Yes

ScaleDimensionConfig

It extends BaseDimensionConfig.

Property Type Required Default Description
max number Yes
min number Yes
field string No (Inherited from BaseDimensionConfig)
fixed: T -- will be added by each element
fixed number No
mode string No Possible values are: linear, quad.

CanvasElementOptions

Property Type Required Default Description
name string Yes
type string Yes
background BackgroundConfig No
border LineConfig No
config No TODO: figure out how to define this (element config(s))
connections CanvasConnection[] No
constraint Constraint No
placement Placement No

Constraint

Property Type Required Default Description
horizontal string No Possible values are: left, right, leftright, center, scale.
vertical string No Possible values are: top, bottom, topbottom, center, scale.

LineConfig

Property Type Required Default Description
color ColorDimensionConfig No
width number No

Placement

Property Type Required Default Description
bottom number No
height number No
left number No
right number No
top number No
width number No

Options

Property Type Required Default Description
inlineEditing boolean Yes true Enable inline editing
root object Yes The root element of canvas (frame), where all canvas elements are nested
TODO: Figure out how to define a default value for this
showAdvancedTypes boolean Yes true Show all available element types

Root

The root element of canvas (frame), where all canvas elements are nested TODO: Figure out how to define a default value for this

Property Type Required Default Description
elements CanvasElementOptions[] Yes The list of canvas elements attached to the root element
name string Yes Name of the root element
type string Yes Type of root element (frame)
Possible values are: frame.