new Message(messageElement, options)
Class constructor.
Methods
- render - (instance) Render the message.
- open - (instance) Open the message.
- close - (instance) Close the message.
- getDataAttributes(messageElement) - (static) Get the data attributes from the messageElement. If the message is being set up declaratively, this method is used to extract the data attributes from the DOM.
- init(rootElement, options) - (static) Initialise message component.
Links
module.exports.message
Static Method
Build a full message element. Used when there is no message element in the DOM.
Returns
Links
module.exports.closeButton
Static Method
Build a close button
Returns
Links
Message.getDataAttributes(messageElement)
Static Method
Get the data attributes from the messageElement. If the message is being set up declaratively, this method is used to extract the data attributes from the DOM.
Links
Message.init(rootElement, options)
Static Method
Initialise message component.