ExpandSidePane操作
この操作は、Fusionアプリケーションの特定のサイド・ペインを展開するために使用します。 SidePaneContextオブジェクトの作成時に、そのsidePaneのIDを渡す必要があります。
TypeScriptの例を次に示します:
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(() => { })
}
JavaScriptの例を次に示します:
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); })
}