What if I want to change for example the label on the same widget, or a different widget?
I can get the property getProp("button_37","label") but unsure how to set it.
setProp() would be cool.
I tried this in the script property console.log(@{button_37.label}) to see if I could access the label property, but it came back with a Reference Error.
so this doesnt work... @{button_37.label} = "Test"
As of 1.9.4 you can use the VAR{} syntax to allow modifying a property from a script. For example you'd write VAR{foo, 1} in a property ("foo", is the name of the property, "1" is the default value for that block), and from any script: setVar('widget_id', 'foo', 2)
console shows false but the button remains visible after hitting this second button. I've tried various combinations of quotes vs no quotes but I'm not sure if I'm doing this right.