Skip to content

Profectus / features/clickables/action / createAction

Function: createAction() ​

createAction<T>(optionsFunc?): object & Omit<Omit<T, "canClick" | "display" | "onClick" | "style" | "duration" | "autoStart" | "barOptions">, "canClick" | "display" | "onClick" | "visibility" | "classes" | "style" | typeof VueFeature | "id" | "components" | "wrappers" | "duration" | "autoStart" | "barOptions"> & object

Lazily creates an action with the given options.

Type Parameters ​

• T extends ActionOptions

Parameters ​

optionsFunc? ​

() => T

Action options.

Returns ​

object & Omit<Omit<T, "canClick" | "display" | "onClick" | "style" | "duration" | "autoStart" | "barOptions">, "canClick" | "display" | "onClick" | "visibility" | "classes" | "style" | typeof VueFeature | "id" | "components" | "wrappers" | "duration" | "autoStart" | "barOptions"> & object

Defined in ​

profectus/src/features/clickables/action.tsx:60