This is only supported on Hybrid version 0.2.9 and higher.
You can make variables by specifying them in a similar format as hybrid
, here's an example:
"variables": {
"cool_message": "a very cool message indeed"
}
All variables have to be a child-key of variables
, otherwise Hybrid won't be able to find it.
To actually use your variable, you can do something like this:
"left-label_mvp": {
"text": "cool_message"
}
Then the text will automatically be replaced with the value from cool_message
. Variables are supported on these keys:
text
command
tooltip