Monster.Components.Form. ActionButton

The ActionButton is a button that opens a popper element with possible actions.

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

<monster-action-button></monster-action-button>

Or you can create this CustomControl directly in Javascript:

import {PopperButton} from '@schukai/component-form/source/action-button.js';
document.createElement('monster-action-button');

Constructor

new ActionButton()

A popper button

Since
  • 3.32.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
labelsobject
Properties
NameTypeDescription
buttonstring

The label of the button

buttonsArray.<object>
buttons[].labelstring

The label of the button

buttons[].classstring

The CSS class of the button

buttons[].actionfunction

The action of the button

templatesobject
Properties
NameTypeDescription
mainstring

The template of the button

See

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Methods

assembleMethodSymbol() → {Monster.Components.Form.Popper}

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

Returns:
Type: 
Array.<CSSStyleSheet>

(static) getTag() → {string}

Returns:
Type: 
string