Skip to main content

Action<P, T, L>

Extends

  • BaseObserver<L>

Extended by

Type Parameters

Type ParameterDefault type
P extends Partial<ActionGenerics>Partial<ActionGenerics>
T extends ActionGenerics & PActionGenerics & P
L extends ActionListener<T["EVENT"]>ActionListener<T["EVENT"]>

Constructors

Constructor

new Action<P, T, L>(options): Action<P, T, L>;

Parameters

ParameterType
optionsT["OPTIONS"]

Returns

Action<P, T, L>

Overrides

BaseObserver<L>.constructor

Properties

PropertyType
actionStoreActionStore
optionsT["OPTIONS"]

Accessors

dialogStore


group

Get Signature

get group(): string;
Returns

string


id

Get Signature

get id(): string;
Returns

string


visorStore

Methods

fireAction()

fireAction(event): Promise<boolean | void>;

Parameters

ParameterType
eventOmit<T["EVENT"], "id">

Returns

Promise<boolean | void>


getExclusiveExecutionLock()

getExclusiveExecutionLock(event?): () => any;

Parameters

ParameterType
event?{ allowed?: (e) => boolean; }
event.allowed?(e) => boolean

Returns

() => any


getTypeDisplayName()

getTypeDisplayName(): string;

Returns

string


renderAsButton()

renderAsButton(render, extraData?): Element;

Parameters

ParameterType
render(btn) => Element
extraDataPartial<T["EVENT"]>

Returns

Element


representAsButton()

representAsButton(extraData?): Btn;

Create a button representation of this action.

The button carries a live validation function, so consumers that render a Btn directly get the same dynamic enabled/disabled behavior as action controls.

Parameters

ParameterType
extraDataPartial<T["EVENT"]>

Returns

Btn


representAsComboBoxItem()

representAsComboBoxItem(options?): ActionComboBoxItem<Action<P, T, L>>;

Parameters

ParameterType
options{ eventData?: Partial<T["EVENT"]>; installAction: boolean; }
options.eventData?Partial<T["EVENT"]>
options.installActionboolean

Returns

ActionComboBoxItem<Action<P, T, L>>


representAsControl()

representAsControl(options?): any;

Parameters

ParameterType
options{ eventData?: Partial<T["EVENT"]>; }
options.eventData?Partial<T["EVENT"]>

Returns

any


representAsIcon()

representAsIcon(extraData?): Btn;

Parameters

ParameterType
extraDataPartial<T["EVENT"]>

Returns

Btn


serialize()

serialize(): SerializedAction;

Returns

SerializedAction


setActionStore()

setActionStore(store): void;

Parameters

ParameterType
storeActionStore

Returns

void


validate()

validate(event?): ValidationResult;

Parameters

ParameterType
eventPartial<T["EVENT"]>

Returns

ValidationResult