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