Constructor
new StateButton()
A state button with icons
- Since
- 1.5.0
- 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
| ||||||||||||
states | Object | Available status Properties
| ||||||||||||
current | Monster. | current status | ||||||||||||
actions.click | Monster. |
- See
- https://monsterjs.org/en/doc/#configurate-a-monster-control The individual configuration values can be found in the table.
- Bootstrap icons license
(static) instanceSymbol
instanceof
operator.This method is called by the instanceof
operator.
- Since
- 2.1.0
Methods
getState() → {Monster.Components.Form.Types.State|undefined}
- Type:
- Monster.
Components. |Form. Types. State undefined
removeState() → {Monster.Components.Form.StateButton}
setState(state, timeout) → {Monster.Components.Form.StateButton}
This method sets the current state of the button. If a timeout is set, the state is automatically removed after the specified time.
Name | Type | Description |
---|---|---|
state | string | |
timeout | number |
- Since
- 3.18.0 a previously set timeout is cleared
value is not a string
- Type
- TypeError
value is not an instance
- Type
- TypeError
(static) getCSSStyleSheet() → {Array.<CSSStyleSheet>}
- Type:
- Array.<CSSStyleSheet>
(static) getTag() → {string}
- Type:
- string