SP.Ribbon.PageState.Handlers.addStateChangeDialogHandler(handler) Method

Applies to: SharePoint Foundation 2010

Adds a specified state change dialog handler to the handler array.

SP.Ribbon.PageState.Handlers.addStateChangeDialogHandler(handler);

Parameters

handler

Type: Object

The state change dialog handler to be added.

Remarks

This method adds the specified state change dialog handler to the handler list to automatically invoke commands in the commands list.

Set the following handler parameter property values, all as function pointers, to handle the indicated state change events for a dialog.

  • abort
    The function that is called when the state change is canceled.

  • enabled
    The function that is called when the state change is enabled.

  • initialize
    The function that is called when the state change is initialized.

  • validate
    The function that is called when the state change is validated.

Applies To

SP.Ribbon.PageState.Handlers Class

See Also

Reference

SP.Ribbon.PageState.Handlers Methods

SP.Ribbon.PageState Namespace