ExpandSidePane Operation

This operation is used to expand a particular side pane in the Fusion application. The ID of that sidePane should be passed while creating the SidePaneContext object.

Here's a TypeScript example:

const expandSidePaneContext = async () => { 
    const uiEventsFrameworkInstance: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1'); 
    const sidePaneContext: ISidePaneContext = await uiEventsFrameworkInstance.getSidePaneContext('sidePaneId'); 
    const payload: IOperationRequest = uiEventsFrameworkInstance.requestHelper.createPublishRequest('ExpandSidePane'); 
    sidePaneContext.publish(payload).then((response: IOperationResponse) => { 
        console.log(response);
    }).catch(() => { }) 
}

Here's a JavaScript example:

const expandSidePaneContext = async () => {
    const uiEventsFrameworkInstance = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1');
    const sidePaneContext = await uiEventsFrameworkInstance.getSidePaneContext('sidePaneId'); 
    const payload = uiEventsFrameworkInstance.requestHelper.createPublishRequest('ExpandSidePane');
    sidePaneContext.publish(payload).then((response) => {
        console.log(response);
    }).catch((error) => { console.log(error); })
}