Search.../

minimize( )

Collapses the chatbox and sets its maximized property to false.

Description

The minimize() function returns a Promise that is resolved when the chatbox finishes collapsing.

Syntax

function minimize(): Promise<void>

minimize Parameters

This function does not take any parameters.

Returns

Fulfilled - When the chatbox is minimized.

Return Type:

Promise<void>

Was this helpful?

Minimize the chatbox

Code Example

Copy Code
1$w("#myChatbox").minimize();
Minimize the chatbox and log a message when done

Code Example

Copy Code
1$w("#myChatbox").minimize()
2 .then(() => {
3 console.log("Done with minimize");
4 });
Toggle a chatbox's maximized state

Code Example

Copy Code
1if($w("#myChatbox").maximized) {
2 $w("#myChatbox").minimize();
3}
4else {
5 $w("#myChatbox").maximize();
6}