This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/monitoring/vendor/github.com/grafana/grafonnet-lib/grafonnet/row.libsonnet

33 lines
651 B
Plaintext

{
new(
title='Dashboard Row',
height=null,
collapse=false,
repeat=null,
showTitle=null,
titleSize='h6'
):: {
collapse: collapse,
collapsed: collapse,
[if height != null then 'height']: height,
panels: [],
repeat: repeat,
repeatIteration: null,
repeatRowId: null,
showTitle:
if showTitle != null then
showTitle
else
title != 'Dashboard Row',
title: title,
type: 'row',
titleSize: titleSize,
addPanels(panels):: self {
panels+: panels,
},
addPanel(panel, gridPos={}):: self {
panels+: [panel { gridPos: gridPos }],
},
},
}