Options : Type |
Default |
Description |
content : string |
null |
The content to be shown in the popup modal. DOM element is acceptable too. Popup modal will not be shown if there is no content.
|
keyboard : boolean |
true |
To enable 'enter' and 'esc' key on 'Ok' and 'Cancel' button respectively.
|
input_length : number |
99 |
Configure the maximum number of character allowed.
|
placeholder : string |
"" |
A placeholder for text box.
|
default_btns : object |
null |
Configure the popup modal default button's text.
Note : Default buttons for alert is 'ok'. For confirm and prompt is 'ok' and 'cancel'.
|
custom_btns : object |
null |
Add extra buttons to the popup modal.
Note : Do checkout the next section on how to implement the button's callback function.
|
btn_align : string |
'left' |
Popup modal's button alignment, either 'left' or 'right'.
|
modal_size : string / number |
'small' |
The popup modal size. There are 'small', 'medium' and 'large'. Numbers are allowed as well, but without the 'px'. eg : 200.
|
bg_overlay_color : string |
'#000' |
The overlay background color of the popup modal.
|
effect : string |
'top' |
The effect when the popup modal is shown. Slide from 'top', 'bottom', 'left' or 'right'. 'none' for no effect.
|