I want to change the font size of text in a template(there will be a button in the template), essentially by binding it to a custom property (Boolean type). Where can I script it? and how?
So in short, its changing the font size of text in a button, via scripting, based on value of the custom property.
Maybe this will help you?? It's for a table, but maybe it will carry over. I've never tried to change font during runtime, so don't know one way or another. Font is not bindable, so scripting would be your only choice.
Another way to do this if appropriate, would be to use the style customiser binding to set the font. Create a custom property on the button to use as the driving property
Sorry this is so late…
But you wouldn’t put this script on the property binding itself, you would put this either in a shared script library, as Phil suggested, or you could add it as a custom function on the component itself (shared library is always preferably as it keeps your scripts in one place and organised).
It’s the runScript command that goes on your font binding