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
Tobias Brunner 301e297d45
All checks were successful
continuous-integration/drone/push Build is passing
update monitoring stack to latest
2020-05-12 19:42:23 +02:00

36 lines
682 B
Plaintext

{
/**
* @name row.new
*/
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 }],
},
},
}