From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 >