ToolbarContext
Enables you to access the MCA toolbar for its configuration.
Syntax
Here's the syntax:
getToolbarContext(): Promise<IToolbarContext>;
Here's a Typescript example:
/// <reference path="uiEventsFramework.d.ts"/>
const frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID', 'V1');
const mcaContext: IMultiChannelAdaptorContext = await frameworkProvider.getMultiChannelAdaptorContext();
const phoneContext: IPhoneContext = await mcaContext.getCommunicationChannelContext('PHONE') as IPhoneContext;
const toolBarContext: IToolbarContext = phoneContext.getToolbarContext();
Here's a Javascript example:
const frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID', 'V1');
const mcaContext = await frameworkProvider.getMultiChannelAdaptorContext();
const phoneContext = await mcaContext.getCommunicationChannelContext('PHONE');
const toolBarContext = phoneContext.getToolbarContext();
Supported Operations
Operation Name | Description | Example |
---|---|---|
SetToolbarProperties | Set the dimensions of the toolbar | SetToolbarProperties |
Supported Methods
Operation Name | Description |
---|---|
publish | Publish an operation in the toolbar context. |