From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 14:00, 16 September 2022 by Katherine (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19

<translate>

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


</translate>

< Previous | Next >