Skip to content

Commit 2cc8d1d

Browse files
authored
Add textPanel to grafana builder. (#341)
* Add textPanel to grafana builder. Signed-off-by: Tom Wilkie <[email protected]> * make fmt Signed-off-by: Tom Wilkie <[email protected]>
1 parent c806cad commit 2cc8d1d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

grafana-builder/grafana.libsonnet

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,25 @@
320320
],
321321
},
322322

323+
textPanel(title, markdown):: {
324+
type: 'text',
325+
title: title,
326+
options: {
327+
content: markdown,
328+
mode: 'markdown',
329+
},
330+
transparent: true,
331+
datasource: null,
332+
timeFrom: null,
333+
timeShift: null,
334+
fieldConfig: {
335+
defaults: {
336+
custom: {},
337+
},
338+
overrides: [],
339+
},
340+
},
341+
323342
stack:: {
324343
stack: true,
325344
fill: 10,

0 commit comments

Comments
 (0)