new Modal(element, options)
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
element |
HTMLElement | DOM element for component instantiation and scope |
|||||||||||||||
options |
Object |
Properties
|
Classes
Methods
checkScroll()
closeModal()
destroy()
handleClickOnToggle(e)
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
handleKeyboardGlobal(e)
- Description:
Handles global keyboard events, triggered outside of the modal.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e |
Event |
init()
openModal()
(static) autoInit(root) → {Modal}
Parameters:
Name | Type | Description |
---|---|---|
root |
HTMLElement | DOM element for component instantiation and scope |
Returns:
An instance of Modal.
- Type
- Modal