Constructor
new Message()
A highly configurable select control
- Since
- 1.0.0
- Copyright
- schukai GmbH
- Monster.Components.Notify.event:monster-xxxx
import {Notify} from '@schukai/component-notify/source/message.js';
const notify = document.createElement('monster-notify');
document.body.appendChild(notify);
Members
defaults
The defaults can be set either directly in the object or via an attribute in the HTML tag. The value of the attribute data-monster-options
in the HTML tag must be a JSON string.
<monster-message data-monster-options="{}"></monster-message>
Since 1.18.0 the JSON can be specified as a DataURI.
new Monster.Types.DataUrl(btoa(JSON.stringify({
timeout: 3000,
features: {
clear: true,
disappear: true
}
})),'application/json',true).toString()
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
templates | string | Template definitions | |||||||||
templates | Object | Template definitions | |||||||||
timeout | integer | time in milliseconds until the message should be removed. The timeout can be disabled via the feature | |||||||||
features | Object | Properties
| |||||||||
templates.main | string | Main template |
Methods
assembleMethodSymbol() → {Monster.Components.Notify.Message}
connectedCallback() → {void}
- Type:
- void
disconnectedCallback() → {void}
- Type:
- void
initMethodSymbol()
(static) getCSSStyleSheet() → {Array.<CSSStyleSheet>}
- Type:
- Array.<CSSStyleSheet>
(static) getTag() → {string}
- Type:
- string