Skip to main content

EntityAction<Target, Event, Options>

Extends

Extended by

Type Parameters

Type ParameterDefault type
Targetany
Event extends EntityActionEvent<Target>EntityActionEvent<Target>
Options extends EntityActionOptions<Target>EntityActionOptions<Target>

Constructors

Constructor

new EntityAction<Target, Event, Options>(options): EntityAction<Target, Event, Options>;

Parameters

ParameterType
optionsOptions

Returns

EntityAction<Target, Event, Options>

Overrides

ParameterizedAction.constructor

Properties

PropertyTypeInherited from
actionStoreActionStoreParameterizedAction.actionStore
optionsParameterizedActionOptions & OptionsParameterizedAction.options

Accessors

dialogStore

Inherited from

ParameterizedAction.dialogStore


group

Get Signature

get group(): string;
Returns

string

Inherited from

ParameterizedAction.group


id

Get Signature

get id(): string;
Returns

string

Inherited from

ParameterizedAction.id


visorStore

Inherited from

ParameterizedAction.visorStore

Methods

collectParams()

collectParams(event): Promise<boolean>;

Parameters

ParameterType
eventEvent

Returns

Promise<boolean>

Overrides

ParameterizedAction.collectParams


fireAction()

fireAction(event): Promise<boolean>;

Parameters

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

Returns

Promise<boolean>

Inherited from

ParameterizedAction.fireAction


getExclusiveExecutionLock()

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

Parameters

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

Returns

() => any

Inherited from

ParameterizedAction.getExclusiveExecutionLock


getTypeDisplayName()

getTypeDisplayName(): string;

Returns

string

Overrides

ParameterizedAction.getTypeDisplayName


renderAsButton()

renderAsButton(render, extraData?): Element;

Parameters

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

Returns

Element

Inherited from

ParameterizedAction.renderAsButton


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

Inherited from

ParameterizedAction.representAsButton


representAsComboBoxItem()

representAsComboBoxItem(options?): ActionComboBoxItem<EntityAction<Target, Event, Options>>;

Parameters

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

Returns

ActionComboBoxItem<EntityAction<Target, Event, Options>>

Inherited from

ParameterizedAction.representAsComboBoxItem


representAsControl()

representAsControl(options?): any;

Parameters

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

Returns

any

Inherited from

ParameterizedAction.representAsControl


representAsIcon()

representAsIcon(extraData?): Btn;

Parameters

ParameterType
extraDataPartial<T["EVENT"]>

Returns

Btn

Inherited from

ParameterizedAction.representAsIcon


serialize()

serialize(): SerializedAction;

Returns

SerializedAction

Inherited from

ParameterizedAction.serialize


setActionStore()

setActionStore(store): void;

Parameters

ParameterType
storeActionStore

Returns

void

Inherited from

ParameterizedAction.setActionStore


validate()

validate(event?): ValidationResult;

Parameters

ParameterType
eventPartial<T["EVENT"]>

Returns

ValidationResult

Inherited from

ParameterizedAction.validate