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


setWidgetMinimized

Enables or disables the Agent Desktop Communicator Widget’s minimized state. Set the parameter value true to minimize the widget or false to restore it back to its normal size.

Request

Syntax

setWidgetMinimized(minimized: boolean): Promise<OperationResult<null>>

Parameters

Parameter Parameter Values Data Type Optional/Required Description
minimized Boolean Required Set the parameter value true to minimize the widget or false to restore it back to its normal size.

Example Request

    setWidgetMinimizedButton.onclick = () => {

        const widgetMinimized = widgetMinimizedCheckbox.checked

        adApi.setWidgetMinimized(widgetMinimized)

    }

Return Value

null

< Previous | Next >