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
| Name | Type |
|---|---|
graph | Graph |
Defined in
actions/CallbackAction.ts:35
Methods
run
▸ run(__namedParameters, options): Promise<ActionReturnValue>
Parameters
| Name | Type |
|---|---|
__namedParameters | [Target[]] |
options | CallbackOptions |
Returns
Promise<ActionReturnValue>
Implementation of
Defined in
actions/CallbackAction.ts:39
runForEditor
▸ Private runForEditor(options, editor, targets): Promise<Target[]>
Parameters
| Name | Type |
|---|---|
options | CallbackOptions |
editor | TextEditor |
targets | Target[] |
Returns
Promise<Target[]>
Defined in
actions/CallbackAction.ts:88