Constructor
new ConfirmButton()
A confirm button
- 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 | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
toggleEventType | Object | click,touch | List of event types to be observed for opening the confirm message | ||||||||
templates | Object | Template definitions Properties
| |||||||||
labels.button | string | '<slot | name="button">' Button label | ||||||||
labels.message | string | '<slot>Should | I Stay or Should I Go?' Message | ||||||||
labels.confirm | string | '<slot | name="confirm">Confirm' Confirm button label | ||||||||
labels.cancel | string | '<slot | name="cancel">Cancel' Cancel button label | ||||||||
actions.confirm | Monster. | ||||||||||
actions.cancel | Monster. | List of event types to be observed for opening the dropdown | |||||||||
popper | Object | Properties
|
- 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.
- Since
- 2.1.0
Methods
assembleMethodSymbol() → {Monster.Components.Form.PopperButton}
setConfirmButtonState(state, timeout) → {Monster.Components.Form.ConfirmButton}
Set the confirm button state
.Set the confirm button state
Name | Type | Description |
---|---|---|
state | string | |
timeout | number |
showConfirmButtonMessage(message, timeout) → {Monster.Components.Form.ConfirmButton}
Set and show the confirm button message
.Set and show the confirm button message
Name | Type | Description |
---|---|---|
message | string | |
timeout | number |
showDialog() → {Monster.Components.Form.PopperButton}
(static) getCSSStyleSheet() → {Array}
- Type:
- Array
(static) getTag() → {string}
- Type:
- string