Constructor
new Viewer()
A simple viewer component
- Copyright
- schukai GmbH
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
| ||||||
classes | Object | Css classes | ||||||
features | Object | Feature definitions |
- See
- https://monsterjs.org/en/doc/#configurate-a-monster-control The individual configuration values can be found in the table.
(static) instanceSymbol
instanceof
operator.This method is called by the instanceof
operator.
Methods
assembleMethodSymbol() → {Monster.Components.Host.Viewer}
setHTML(data)
if the data is a string, it is interpreted as html if the data is a url, the html is loaded from the url and set as content if the data is an HTMLElement, the outerHTML is used as content
.if the data is a string, it is interpreted as html if the data is a url, the html is loaded from the url and set as content if the data is an HTMLElement, the outerHTML is used as content
Name | Type | Description |
---|---|---|
data | HTMLElement | |
setImage(data)
Name | Type | Description |
---|---|---|
data | Blob | |
setPDF(data, navigation, toolbar, scrollbar)
Name | Type | Default | Description |
---|---|---|---|
data | Blob | | ||
navigation | boolean | true | |
toolbar | boolean | true | |
scrollbar | boolean | false |
(static) getCSSStyleSheet() → {Array.<CSSStyleSheet>}
- Type:
- Array.<CSSStyleSheet>
(static) getTag() → {string}
- Type:
- string