Skip to content

RowBuilder🔗

Constructor🔗

new RowBuilder(title: string)

Methods🔗

build🔗

Builds the object.

build()

collapsed🔗

Whether this row should be collapsed or not.

Note: panels added directly to a row will be stripped by Grafana unless the row is collapsed

collapsed(collapsed: boolean)

datasource🔗

Name of default datasource for the row

datasource(datasource: dashboard.DataSourceRef)

gridPos🔗

Row grid position

gridPos(gridPos: dashboard.GridPos)

id🔗

Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally.

id(id: number)

repeat🔗

Name of template variable to repeat for.

repeat(repeat: string)

title🔗

Row title

title(title: string)

withPanel🔗

List of panels in the row

Note: since panels added directly to a row will be stripped by Grafana unless the row is collapsed,

this option will set the current row as collapsed.

withPanel(panel: cog.Builder<dashboard.Panel>)

See also🔗