Change component boolean property value on a prototype

Hello! Is there a way to swap the value of a component boolean property on a prototype? Something like, on click on a button, I want to set the collapsed boolean property of my component to true.

Hi, Rolando.

Yes. You can swap the value of the boolean property using boolean variables.

First, create a boolean variable in your local variables.
image

Then, on the instance of your component apply the variable on the boolean property.
image

Lastly, on the button that you will click, add interactions and use the set variable and change the Boolean variable to true.