Let’s say that I want to have multiple red (“destructive”) buttons in an action sheet. How can I do that? Can I add a css class, such as “button-assertive”, to a specific button, so that it looks like a destructive button?
you can set custom buttons with button: [{ text: ‘Button1’}, {text: ‘Button2’}]
so you can take html-code in that text-key -> add classes you want and style your buttons.
1 Like
Thanks, that works. I ended up with this:
var buttons = [
{ text: '<span class="assertive">Leave</span>' }
];