ObjectKind: global class
| Param | Type |
|---|---|
| element | HTMLElement |
| options | options |
Opens the modal
Kind: instance method of IHModals
Closes the modal
Kind: instance method of IHModals
booleanCurrent modal status
Kind: instance method of IHModals
Fired when the modal opens
Kind: instance method of IHModals
| Param | Type |
|---|---|
| callback | function |
Removes previously bound open callback
Kind: instance method of IHModals
| Param | Type |
|---|---|
| callback | function |
Fired when the modal opens, but only once.
Kind: instance method of IHModals
| Param |
|---|
| callback |
Fired when the modal closes
Kind: instance method of IHModals
| Param | Type |
|---|---|
| callback | function |
Removes previously bound close callback
Kind: instance method of IHModals
| Param | Type |
|---|---|
| callback | function |
Fired when the modal closes, but only once.
Kind: instance method of IHModals
| Param | Type |
|---|---|
| callback | function |
ObjectKind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| [className] | string |
Classname added to the modal when opened. Defaults to modal--open |
| [closeOnBackgroundClick] | boolean |
Enable closing the modal when clicking outside the modal. Defaults to true. |
| [disableBackgroundListening] | boolean |
Disabled listening of any background clicks. Used in special cases where you dont wan’t the modal service interfering with the background. |
| [onOpenCallback] | function |
|
| [onCloseCallback] | function |