ActionsRecorderEntry
interface
Represents a recorded action entry with context and state information.
Properties
-
action : string
module:watchdog/actionsrecorderconfig~ActionsRecorderEntry#action
The name of the action.
For example:
component.bold:execute
Main action for toolbar buttonbold
was executed.commands.bold:execute
Thebold
command was executed.model.applyOperation
The low-level operation was applied to the model.observers:paste
Thepaste
DOM event was dispatched in the editing root.model.insertContent
Themodel#insertContent()
was called.model-selection:change:range
The model selection range was changed.
-
after : ActionsRecorderEntryEditorSnapshot | undefined
module:watchdog/actionsrecorderconfig~ActionsRecorderEntry#after
The editor state after the action was executed.
-
module:watchdog/actionsrecorderconfig~ActionsRecorderEntry#before
The editor state before the action was executed.
-
error : any | undefined
module:watchdog/actionsrecorderconfig~ActionsRecorderEntry#error
The error if the action throws one.
-
params : Array<any> | undefined
module:watchdog/actionsrecorderconfig~ActionsRecorderEntry#params
Params provided for the executed action. They depend on the actual action.
-
parentEntry : ActionsRecorderEntry | undefined
module:watchdog/actionsrecorderconfig~ActionsRecorderEntry#parentEntry
For nested actions this is a reference to parent action (nesting of try-catch blocks).
For example when user clicks a button in a toolbar it could generate such nested tree:
component.bold:execute
commands.bold:execute
model.applyOperation
-
result : any | undefined
module:watchdog/actionsrecorderconfig~ActionsRecorderEntry#result
The result returned by the executed action. It depends on the actual action.
-
timeStamp : string
module:watchdog/actionsrecorderconfig~ActionsRecorderEntry#timeStamp
Entry timestamp in ISO date time format.