addHandler (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 1.0
Adds the subscriber to the events.
Note
This API can be used on both the widget and Unified Interface page.
Syntax
Microsoft.CIFramework.addHandler(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:
eventName parameter. |
handlerFunction | Function | Yes | The handler function is invoked when any of the supported events are triggered. |
Example
The sample code demonstrates setting the addHandler method for the onmodechanged
event.
handlerFunction = function(eventData) {
console.log(eventData)
return Promise.resolve();
}
Microsoft.CIFramework.addHandler("onmodechanged", handlerFunction);
See also
onclicktoact
onmodechanged
onsizechanged
onpagenavigate
onsendkbarticle
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for