Way to target Icon in Button with logic?

I would like to change the icon that is part of a button component programmatically (using logic to change which icon is used in a button). Is there a way to do that?

Something like the following (which unfortunately doesn’t work):

Hello @Alex_Klein!

Yes, you can do it this way, you just need to replace the property with startIcon or endIcon.

Regards,
Alexander

1 Like

Amazing. Thank you!

1 Like