From Bright Pattern Documentation
Jump to: navigation, search
(Created page with "<translate> =setWidgetMinimized= Enables or disables the Agent Desktop Communicator Widget’s minimized state. Set the parameter value ''true'' to minimize the widget or ''f...")
 
(No difference)

Latest revision as of 14:00, 16 September 2022

• 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 >