Search...
maximize( )
Expands the chatbox and sets its maximized
property to true
.
Description
The maximize()
function returns a Promise that is resolved when
the chatbox finishes expanding.
Syntax
function maximize(): Promise<void>
maximize Parameters
This function does not take any parameters.
Returns
Fulfilled - When the chatbox is maximized.
Return Type:
Promise<void>
Was this helpful?
Maximize the chatbox
Copy Code
1$w("#myChatbox").maximize();
Maximize the chatbox and log a message when done
Copy Code
1$w("#myChatbox").maximize()2 .then(() => {3 console.log("Done with maximize");4 });
Toggle a chatbox's maximized state
Copy Code
1if($w("#myChatbox").maximized) {2 $w("#myChatbox").minimize();3}4else {5 $w("#myChatbox").maximize();6}