Start/End Icon logic for buttons

Hi,

Buttons now have settings for Start Icon / End Icon.
How can I influence those with logic ?
Is there a style, a class, or a property I can set ?

Thanks.

Hi @Nicolas_REMY,

if you assign an ID to the button, you can use the following approach to change icon in the logic:

If you wish to change the endIcon, then the property name should be endIcon.
The value is the name of an icon.

Also, you can target this icon in styles using .bl-button-start-icon or .bl-button-end-icon classes.

Regards,
Stanislaw

1 Like

OK, thanks a lot.