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

SharePoint 2010

Last modified: May 26, 2011

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);

commandId

Type: string

The command to handle.

Type: Boolean

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

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.

Show: