Skip to main content

Class: CallbackAction

actions/CallbackAction.CallbackAction

This is a helper action that is used internally to implement various actions. It takes a callback that is called once for each editor, receiving all the targets that are in the given editor.

Implements

Constructors

constructor

new CallbackAction(graph)

Parameters

NameType
graphGraph

Defined in

actions/CallbackAction.ts:35

Methods

run

run(__namedParameters, options): Promise<ActionReturnValue>

Parameters

NameType
__namedParameters[Target[]]
optionsCallbackOptions

Returns

Promise<ActionReturnValue>

Implementation of

Action.run

Defined in

actions/CallbackAction.ts:39


runForEditor

Private runForEditor(options, editor, targets): Promise<Target[]>

Parameters

NameType
optionsCallbackOptions
editorTextEditor
targetsTarget[]

Returns

Promise<Target[]>

Defined in

actions/CallbackAction.ts:88