Skip to main content

ShowButton

Shows or hides buttons in the header.

Syntax​

expression.ShowButton(id, bShow, align);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
idRequiredstringThe button ID.
bShowRequiredbooleanThe flag specifies whether the button is shown (true) or hidden (false).
alignRequiredstringThe parameter indicates whether the button will be displayed on the right side of the window or on the left. The default value is "left".

Returns​

This method doesn't return any data.

Example​

window.Asc.plugin.executeMethod ("ShowButton", ["back", false, "right"]);