new Modal(options,)
- See:
Modal constructor
Parameters:
Name | Type | Description |
---|---|---|
options, |
Object | The Modal options |
Members
container
content
Sets the content of the modal
element
header
id
onClose
onDock
onFullscreen
root
title
Sets the title of the modal
Methods
close()
Closes the modal and fires the onClose callback
dock()
Docks the modal and fires the onDock callback
emptyContent()
Empty content of the modal
fullscreen()
Sets the modal to fullscreen and fires the onFullscreen callback
getWidgetInner() → {*}
Returns:
- Type
- *
isDocked() → {boolean}
Returns:
Boolean, whether or not the modal is docked
- Type
- boolean
isFullscreen() → {Boolean}
Returns:
Boolean whether or not the modal is in fullscreen mode or not
- Type
- Boolean
isHeaderless() → {boolean}
Returns:
Boolean, whether or not the modal is headerless
- Type
- boolean
onResize(callback)
Parameters:
Name | Type | Description |
---|---|---|
callback |
onResizeStop() → {*}
Callback fired when modal stops resizing.
Returns:
- Type
- *
setBadge(badgeText)
Sets badge for the modal overlay
Parameters:
Name | Type | Description |
---|---|---|
badgeText |
Number | String | will be displayed as a badge |