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
-
HTMLElement
- Returns the new message element
Links
Message#render
Instance Method
Render the message.
Links
Message#open
Instance Method
Open the message.
Links
Message#close
Instance Method
Close the message.
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.
Links
module.exports.message
Static Method
Build a full message element. Used when there is no message element in the DOM.
Returns
-
HTMLElement
- Returns the new message element
Links