Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ButtonPanelEvent

Events that can be triggered by a ButtonPanel instance.

Index

Enumeration members

ADD_BUTTON

ADD_BUTTON: = "button:add"

Fired when a button is added to the panel.

Event data provides the following properties:

{ button = Button }

CHANGE

CHANGE: = "change"

Fired when the selected value(s) of a segmented button of button group changes.

Event data provides the following properties:

{
    id = string,
    value = string | Array<string> | Record<string, any>;
    previous = string | Array<string> | Record<string, any>;
    options = Record<string, any>,
    segments = Array<string>;
    isFilter = boolean;
    reload = boolean;
}

CONTROL_CHANGE

CONTROL_CHANGE: = "control:change"

Fired when a control associated with the button changes (e.g. opacity slider control).

Event data provides the following properties:

{
    id = string,
    value = string | Array<string> | Record<string, any>;
    options = Record<string, any>,
    control = { id = string; value = string | number; }
}

DESELECT

DESELECT: = "deselect"

Fired when a button is deselected.

Event data provides the following properties:

{
    id = string,
    value = string | Array<string> | Record<string, any>;
    options = Record<string, any>,
    segments = Array<string>;
}

REMOVE_BUTTON

REMOVE_BUTTON: = "button:remove"

Fired when a button is removed from the panel.

Event data provides the following properties:

{ button = Button }

SELECT

SELECT: = "select"

Fired when a button is selected.

Event data provides the following properties:

{
    id = string,
    value = string | Array<string> | Record<string, any>;
    options = Record<string, any>,
    segments = Array<string>;
}

SIZE_CHANGE

SIZE_CHANGE: = "change:size"

Fired when the content size of the panel changes, usually as a result of buttons being added and/or removed and segmented buttons being expanded and/or collapsed.

Generated using TypeDoc