Skip to main content
Version: latest

ActionsFactory

Interface

Properties

createAction

Creates an action with provided options.

Type

(options: ActionOptions) => IUpdatableAction

Type declaration

Signature

(options: ActionOptions) => IUpdatableAction
Parameters
NameType
optionsActionOptions
Returns

IUpdatableAction


createAsyncAction

Creates an action that will wait for a promise to get its options. In terms of GUI until a promise is resolved the loader/spinner will be displayed.

Type

(loader: () => Promise<ActionOptions>) => IUpdatableAction

Type declaration

Signature

(loader: Function) => IUpdatableAction
Parameters
NameType
loader() => Promise<ActionOptions>
Returns

IUpdatableAction


createSeparator

Creates a separator item.

Type

() => ISeparator

Type declaration

Signature

() => ISeparator
Returns

ISeparator