Namespace: modal_light

UCASDesignFramework.modal_light

Lightweight modal designed to be easily ported to SPA frameworks et al.
Source:

Classes

Modal

Methods

(static) .destroy()

Remove event listeners and close all open modals.
Source:

(static) .hideModal(modalID)

Hides all modals or specific modalID
Parameters:
Name Type Description
modalID string ID of modal to hide (optional)
Source:

(static) .init()

Initialise plugin
Source:

(static) .showModal(modalID)

Displays a modal
Parameters:
Name Type Description
modalID string | event ID of modal to show or click event who's target contains a data-modal-id attribute
Source:

Events