constructor
flagrate.createModal
flagrate.createModal(option) → flagrate.Modal
new flagrate.Modal
option
(Object
) – configuration for the modal.
Create and initialize the modal.
option
target
(Element; defaultdocument.body
):id
(String):className
(String):title
(String):subtitle
(String):text
(String):html
(String):element
(Element):href
(String):buttons
(Array): of button object.sizing
(String; default"flex"
;"flex"
|"full"
):onBeforeClose
(Function):onClose
(Function):onShow
(Function):disableCloseButton
(Boolean; defaultfalse
):disableCloseByMask
(Boolean; defaultfalse
):disableCloseByEsc
(Boolean; defaultfalse
):
button
key
(String):label
(String; required):icon
(String):color
(String):onSelect
(Function):isFocused
(Boolean; defaultfalse
):isDisabled
(Boolean; defaultfalse
):className
(String):