mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
Scenes: Add textbox var to scenes demo (#64313)
* Scenes: Add textbox var to scenes demo * Upgrade scenes version --------- Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
This commit is contained in:
parent
29b3f3fbf4
commit
4c0571be3a
@ -10,6 +10,7 @@ import {
|
||||
DataSourceVariable,
|
||||
TestVariable,
|
||||
NestedScene,
|
||||
TextBoxVariable,
|
||||
} from '@grafana/scenes';
|
||||
|
||||
import { DashboardScene } from '../dashboard/DashboardScene';
|
||||
@ -55,6 +56,10 @@ export function getVariablesDemo(): DashboardScene {
|
||||
name: 'ds',
|
||||
query: 'testdata',
|
||||
}),
|
||||
new TextBoxVariable({
|
||||
name: 'textbox',
|
||||
value: 'default value',
|
||||
}),
|
||||
],
|
||||
}),
|
||||
body: new SceneFlexLayout({
|
||||
@ -72,6 +77,11 @@ export function getVariablesDemo(): DashboardScene {
|
||||
alias: 'handler: $handler',
|
||||
}),
|
||||
}),
|
||||
new SceneCanvasText({
|
||||
text: 'Text: ${textbox}',
|
||||
fontSize: 20,
|
||||
align: 'center',
|
||||
}),
|
||||
new SceneCanvasText({
|
||||
placement: { width: '40%' },
|
||||
text: 'server: ${server} pod:${pod}',
|
||||
|
Loading…
Reference in New Issue
Block a user