CUI.Page.CommandDispatcher.registerCommandHandler(commandId, handler) Method
Applies to: SharePoint Foundation 2010
Registers a command handler for the command with the specified ID.
CUI.Page.CommandDispatcher.registerCommandHandler(commandId, handler);
Parameters
commandId
Type: String
The ID of the command for which the handler is registered.
handler
Type: CUI.Page.ICommandHandler
The handler that will execute the command.
Exceptions
Sys.Exception
commandId is null or undefined.
-or-
handler is null or undefined.
Remarks
The same handler should not be registered twice for the same command.
Applies To
CUI.Page.CommandDispatcher Class