Size

Forms Developer Guides Scripting Interface Modal

SIZE(value)

var modal = Modal.new();

modal.size("x-small");
modal.size("small");
modal.size("medium");
modal.size("large");
modal.size("x-large");

Returns the modal's current size, or updates it if a value argument is given. The modal's size mainly controls its width, but some tweaks to header, padding, and button sizes are also be made, depending on the screen size.

To get a full list of modal sizes, use the App.Interface.Modal.sizes variable.

// ["x-small", "small", "medium", "large", "x-large"]
App.Interface.Modal.sizes