Add height to widget onclick


#1

Is there a way to add height to a widget on a onclick event?

I have 1 rectangle widget with a default height of 100px and a button. On clicking the button I would like to add 150px to the height of the shape each time the button is clicked. Is this possible?


#2

Yup. Just use the “Set Size” action and get the new height of the widget on every click.

Example:
image

To change the height of a different widget just replace the “This” with a local variable referencing the widget you want to resize.


#3

Perfect, thank you @huban that worked a treat.


closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.