Bolding a button label dynamically

Is there a way to bold the label of a button on an event? I see you can do that through the formatting GUI. I tried passing HTML in the label but its plaintext.

It would be incredibly lame if you can’t do it especially considering you can do it in formatting. And yes my button supports bold/italics.

Thanks

Hi,

Currently, changing the font-weight styling of a button is not supported. You can view which styles you’d be able to change here . Feel free to add this feature to our wishlist .

However, there are a few other options you might want to look into.

  1. You can use the HTML element and create a custom button with HTML and CSS and add pass functionality to it from your page. Read more about it here .

  2. You’d also be able to use the custom element.

If these alternatives don’t work out for you, there is a workaround you can implement. You can add two buttons, one with the bold text and one without, positioned over each other and then use code to create an effect.

For example, if you wanted to bold the button’s text on hover, you can use the onMouseIn and onMouseOut event handlers to show / hide the bolded button to create the hover effect.

Hope this helps!

Best regards,
Miguel