removeHandler (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 1.0

Removes the subscriber from the events.

Note

This API can be used on both the widget and Unified Interface page.

Syntax

Microsoft.CIFramework.removeHandler(eventName, handlerFunction);

Parameters

Name Type Required Description
eventName string Yes Name of the event for which the handler is set.
The supported events are as follows:
  • onclicktoact: The event is invoked when the outbound communication (ClickToAct) enabled filed is clicked.
  • onmodechanged: The event is invoked when the panel mode is manually toggled between Minimized (0) and Docked (1).
  • onsizechanged:The event is invoked when the panel size is manually changed by dragging
  • onpagenavigate:The event is triggered before a navigation event occurs on the main page
  • onsendkbarticle: The event is invoked when the user clicks the send button on the KB control.
handlerFunction Function Yes The handler function that is to removed.

See also

onClickToAct

onModeChanged

onPageNavigate

onSendKBArticle

onSizeChanged