SP.Ribbon.PageState.PageStateHandler.canHandleCommand(commandId) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Indicates whether the page component can handle the specified command.

var value = SP.Ribbon.PageState.PageStateHandler.canHandleCommand(commandId);

Parameters

commandId

Type: string

The command to handle.

Return Value

Type: Boolean

true if the page component can handle the specified command; otherwise, false.

Remarks

This method returns a value that indicates whether the page component can handle the command specified by the commandId parameter.

See the SP.Ribbon.PageState.PageStateCommands Fields topic for the list of commands.

Applies To

SP.Ribbon.PageState.PageStateHandler Class

See Also

Reference

SP.Ribbon.PageState.PageStateHandler Events

SP.Ribbon.PageState.PageStateHandler Fields

SP.Ribbon.PageState.PageStateHandler Methods

SP.Ribbon.PageState Namespace