Monster.Components.State. State

States tell users that there’s a state. that s it!

Dependencies: the system uses functions of the monsterjs library

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

<monster-state></monster-state>

Or you can create this CustomControl directly in Javascript:

import {State} from '@schukai/component-state/source/state.js';
document.createElement('monster-state');

Constructor

new State()

States tell users that there’s a state. that s it!

Since
  • 1.5.0

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

contentObject
Properties
NameTypeDescription
visualstring

Visual content

contentstring

Content

actionstring

Action

See

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Methods

assembleMethodSymbol() → {Monster.Components.State.State}

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

Returns:
Type: 
Array.<CSSStyleSheet>

(static) getTag() → {string}

Returns:
Type: 
string