Skip to main content

SwitchWorkspaceAction

Extends

Constructors

Constructor

new SwitchWorkspaceAction(): SwitchWorkspaceAction;

Returns

SwitchWorkspaceAction

Overrides

EntityAction.constructor

Properties

PropertyModifierTypeDefault valueInherited from
actionStorepublicActionStoreundefinedEntityAction.actionStore
optionspublicParameterizedActionOptions & EntityActionOptions<WorkspaceModel>undefinedEntityAction.options
IDstaticstring'SWITCH_WORKSPACE'-
NAMEstaticstring'Switch workspace'-

Accessors

dialogStore

Inherited from

EntityAction.dialogStore


group

Get Signature

get group(): string;
Returns

string

Inherited from

EntityAction.group


id

Get Signature

get id(): string;
Returns

string

Inherited from

EntityAction.id


visorStore

Inherited from

EntityAction.visorStore


workspaceStore

Methods

collectParams()

collectParams(event): Promise<boolean>;

Parameters

ParameterType
eventEntityActionEvent

Returns

Promise<boolean>

Inherited from

EntityAction.collectParams


fireAction()

fireAction(event): Promise<boolean>;

Parameters

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

Returns

Promise<boolean>

Inherited from

EntityAction.fireAction


getExclusiveExecutionLock()

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

Parameters

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

Returns

() => any

Inherited from

EntityAction.getExclusiveExecutionLock


getTypeDisplayName()

getTypeDisplayName(): string;

Returns

string

Inherited from

EntityAction.getTypeDisplayName


renderAsButton()

renderAsButton(render, extraData?): Element;

Parameters

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

Returns

Element

Inherited from

EntityAction.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

EntityAction.representAsButton


representAsComboBoxItem()

representAsComboBoxItem(options?): ActionComboBoxItem<SwitchWorkspaceAction>;

Parameters

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

Returns

ActionComboBoxItem<SwitchWorkspaceAction>

Inherited from

EntityAction.representAsComboBoxItem


representAsControl()

representAsControl(options?): any;

Parameters

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

Returns

any

Inherited from

EntityAction.representAsControl


representAsIcon()

representAsIcon(extraData?): Btn;

Parameters

ParameterType
extraDataPartial<T["EVENT"]>

Returns

Btn

Inherited from

EntityAction.representAsIcon


serialize()

serialize(): SerializedAction;

Returns

SerializedAction

Inherited from

EntityAction.serialize


setActionStore()

setActionStore(store): void;

Parameters

ParameterType
storeActionStore

Returns

void

Inherited from

EntityAction.setActionStore


validate()

validate(event?): ValidationResult;

Parameters

ParameterType
eventPartial<T["EVENT"]>

Returns

ValidationResult

Inherited from

EntityAction.validate


get()

static get(): SwitchWorkspaceAction;

Returns

SwitchWorkspaceAction