Skip to main content

EndAction

Specifies the end action for long operations.

note

GroupActions are available only for ONLYOFFICE Docs Enterprise and ONLYOFFICE Docs Developer.

Syntax

expression.EndAction(type, description, status);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
typeRequired"Information" | "Block" | "GroupActions"The action type: "Information" - ends a non-blocking informational action, "Block" - ends a blocking interaction action, "GroupActions" - ends the grouped operations started with StartAction("GroupActions").
descriptionOptionalstring | ObjectFor "Information" and "Block" types: a string description displayed during the action. For "GroupActions" type: an optional object with the following properties:
description.scrollToTargetOptionalbooleantrueIf false, the editor will not scroll to the target after the group operation ends.
description.cancelOptionalbooleanfalseIf true, the group operation is cancelled and rolled back instead of committed.
statusOptionalstringFor "Information" and "Block" types: the error status code. If no error occurs, then an empty string is passed.

Returns

This method doesn't return any data.

Example

window.Asc.plugin.executeMethod ("EndAction", ["Block", "Save to local storage...", ""]);