Constructor
new Host()
A simple host component
- Copyright
- schukai GmbH
- Monster.Components.Host.Host#event:monster-host-connected
- Monster.Components.Host.Host#event:monster-host-disconnected
Members
defaults
data-monster-options
must be used.To set the options via the html tag the attribute data-monster-options
must be used.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
templates | Object | Template definitions Properties
| ||||||
features | Object | Feature definitions |
- See
- https://monsterjs.org/en/doc/#configurate-a-monster-control The individual configuration values can be found in the table.
focusManager
locale
resourceManager
translations
(static) instanceSymbol
instanceof
operator.This method is called by the instanceof
operator.
Methods
assembleMethodSymbol() → {Monster.Components.Host.Host}
closeOverlay() → {Host}
There is no overlay element defined.
- Type
- Error
- Type:
- Host
getConfig(key) → {Promise}
Name | Type | Description |
---|---|---|
key |
- Type:
- Promise
onReady() → {Promise}
The Promise is resolved when the element is connected to the DOM and all resources are available. If the element is not connected to the DOM, the Promise is rejected.
- Type:
- Promise
openOverlay() → {Host}
There is no overlay element defined.
- Type
- Error
- Type:
- Host
pushNotification(message)
Name | Type | Description |
---|---|---|
message | string | |
setConfig(key, value) → {Promise}
Name | Type | Description |
---|---|---|
key | string | |
value | * |
- Type:
- Promise
toggleOverlay() → {Monster.Components.Host.Host}
There is no overlay element defined.
- Type
- Error
(static) getCSSStyleSheet() → {Array.<CSSStyleSheet>}
- Type:
- Array.<CSSStyleSheet>
(static) getTag() → {string}
- Type:
- string
Events
event:monster-host-connected
This event is fired during the host connection process. The event is fired on the host element.
- object
event:monster-host-disconnected
This event is fired during the host disconnection process. The event is fired on the host element.
- object