CUI.Page.PageManager.canHandleCommand(commandId) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Verifies whether the page component can handle the specified command that was passed to it.
var value = CUI.Page.PageManager.canHandleCommand(commandId);
Parameters
commandId
Type: String
The ID of the command that is to be handled.
Return Value
Type: Boolean
true if the page component can handle the specified command; otherwise, false.
Remarks
This method returns true if the commandId is T:Commands.CommandIds.ApplicationStateChanged.