How can I make a push button in a matrix widget no release?
Thanks
The matrix’ props
property can be used to override its children’s properties, to enable the norelease
mode, you’d set props
to:
{
"norelease": true
}
Multiple properties can be overridden this way, for example:
{
"norelease": true,
"on": 100,
"off": -1
}
Also, formulas in this context are given an extra variable ($
) that exposes the subwidget’s index:
{
"norelease": true,
"on": 100,
"off": -1,
"label": "JS{{return 'btn ' + $}}"
}