Monster.Components.Layout. SplitScreen

The Viewer component is used to show a PDF, HTML or Image.

You can create this control either by specifying the HTML tagdirectly in the HTML or using Javascript via thedocument.createElement('monster-split-screen');` method.

<monster-split-screen></monster-split-screen>

Or you can create this CustomControl directly in Javascript:

import '@schukai/monster/components/layout/split-screen.mjs';
document.createElement('monster-split-screen');

Constructor

new SplitScreen()

A simple split screen layout

Members

defaults

To set the options via the html tag the attribute data-monster-options must be used.

To set the options via the html tag the attribute data-monster-options must be used.

Properties
NameTypeDescription
templatesObject

Template definitions

Properties
NameTypeDescription
mainstring

Main template

splitTypestring

Split type (vertical or horizontal)

dimensionstring

Dimension

Properties
NameTypeDescription
initialstring

Initial dimension of the start panel

maxstring

Maximum dimension of the start panel (in percentage)

minstring

Minimum dimension of the start panel (in percentage)

See

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Methods

assembleMethodSymbol() → {Monster.Components.Host.Viewer}

setDimension(dimension) → {Object}

Check if the dimension is a percentage and within a valid range, then set the dimension option.

Check if the dimension is a percentage and within a valid range, then set the dimension option.

Parameters:
NameTypeDescription
dimensionstring

The dimension to be set, can be in percentage or absolute value.

Returns:
  • Returns the current object instance for chaining.
Type: 
Object

(static) getCSSStyleSheet() → {Array.<CSSStyleSheet>}

Returns:
Type: 
Array.<CSSStyleSheet>

(static) getTag() → {string}

Returns:
Type: 
string