Skip to content

Commit

Permalink
Add default value for text box variable
Browse files Browse the repository at this point in the history
  • Loading branch information
corsinux committed Feb 20, 2023
1 parent 50adde3 commit 266a362
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions grafonnet/template.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -239,22 +239,24 @@
*
* @param name Variable name.
* @param label (default `''`) Display name of the variable dropdown. If you don’t enter a display name, then the dropdown label will be the variable name.
* @param value default value Variable.
*
* @return A text box variable.
*/
text(
name,
label=''
label='',
value
)::
{
current: {
selected: false,
text: '',
value: '',
text: value,
value: value,
},
name: name,
label: label,
query: '',
query: value,
type: 'textbox',
},
/**
Expand Down

0 comments on commit 266a362

Please sign in to comment.