CUI.Page.FocusManager.callCommandHandlerForEnabled(handler, commandId) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Determines whether the specified command handler can execute the command with the specified ID.

var value = CUI.Page.FocusManager.callCommandHandlerForEnabled(handler, commandId);

Parameters

handler

Type: CUI.Page.ICommandHandler

The handler for the command.

commandId

Type: String

The ID of the command.

Return Value

Type: boolean

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

Remarks

If the handler is not the active CUI.Page.PageComponent Class—that is, the component does not have the focus—the command is not enabled for this component.

Applies To

CUI.Page.FocusManager Class

See Also

Reference

CUI.Page.FocusManager Methods

CUI.Page Namespace