Is there a way to change the width of "alert" modals?

What I’m trying to do:

Have some or all of my alert modal pop-ups be wider than the default.

What I’ve tried and what’s not working:

I’ve no idea what to try!

On a forum post I saw a mention of setting roles for alerts, but I can’t see how I would do that.

Thanks!

Have you looked at Custom popup styles ? role is an optional parameter to alert().

How you would define a custom role for an alert, is searchable in the Forum.

Edit: also see the alert() parameter named large.

1 Like

Hi @alex.wilber,

Just checking - have you tried passing large=True to the alert() function? Is this not working for you, or is there something more that you need?

1 Like

Sorry, I really have to apologise on this one. I could have sworn I’d checked all the documentation (repeatedly, over the years), but it turns out it’s right there in the docs!