Change the picture on an icon

Hi everyone

Newbie here and I’m sure this is simple but how do I change the icon on an icon element?

I have a button for hide and show a sidebar and want it to be << when open to close it, >> when closed and to open it

I’m assuming it’s using a custom state but I’m stuck. Any help appreciated

Thanks
Mike

Hi,

Go to the “Conditional” tab of your icon and set a condition, e.g.:

  • when custom state is open
  • change the “icon” property and choose the appropriate icon
    without the condition true, the icon will be what you defined in the “Appearence” tab

Create 2 workflows on click on the button to set the state of the custom state

  1. When button is clicked and your custom state says it is “open” to set state to “close”
  2. When button is clicked and your custom state says it’s “close” to set state to “open”

Thank you @eliot1, appreciate the help