DS Server

Javascript: ToolbarButton.disable Method

Method|Introduced in 32.4.1

Description

Disables interaction with the toolbar button.

Syntax

<void> ToolbarButton.disable()

Return Value

Disables interaction with the toolbar button.

Examples

The following example demonstrates toolbarbutton.disable in a practical Document Viewer workflow. Disables the button.

function disableApproveButton(toolbarButton) {
    toolbarButton.disable();
    console.log("Approve button: disable.");
}