Partilhar via


CUI.Page.CommandDispatcher.isCommandEnabled(commandId) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Determines whether any of the registered command handler can execute the command with the specified ID.

var value = CUI.Page.CommandDispatcher.isCommandEnabled(commandId);

Parameters

commandId

Type: String

The ID of the command to check.

Return Value

Type: boolean

true if at least one command handler can execute the command; otherwise, false.

Remarks

This method returns true if at least one handler can execute the command.

Applies To

CUI.Page.CommandDispatcher Class

See Also

Reference

CUI.Page.CommandDispatcher Methods

CUI.Page Namespace