From Bright Pattern Documentation
Jump to: navigation, search
• 5.19


onWidgetMinimizedChange

This callback is invoked when the Agent Desktop Communicator widget changes its state (i.e., it is minimized or maximized).

Request

Syntax

on('ON_WIDGET_MINIMIZED_CHANGE', handler: OnWidgetMinimizedChangeHandler): void


type OnWidgetMinimizedChangeHandler = (minimized: boolean) => void

Parameters

Parameter Parameter Values Data Type Optional/Required Description
minimized Boolean Required If set to true, the widget is minimized; if set to false, the widget is maximized

Example Request

function widgetMinimizedStateChangeCallback(isMinimized: boolean) {

if (isMinimized) {

console.log("Widget is minimized");

} else {

console.log("Widget is returned to the expanded mode");

}

}

adApi.on("ON_WIDGET_MINIMIZED_CHANGE", widgetMinimizedStateChangeCallback);

Return Value

(None)

< Previous | Next >