blockly > WidgetDiv > show
Initialize and display the widget div. Close the old one if needed.
Signature:
export declare function show(newOwner: unknown, rtl: boolean, newDispose: () => void): void;
Parameters
Parameter |
Type |
Description |
newOwner |
unknown |
The object that will be using this container. |
rtl |
boolean |
Right-to-left (true) or left-to-right (false). |
newDispose |
() => void |
Optional cleanup function to be run when the widget is closed. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `Blockly.WidgetDiv.show()` function initializes and displays the widget div, closing any existing ones."],["It takes three parameters: `newOwner` (the object using the container), `rtl` (boolean for text direction), and an optional `newDispose` function for cleanup."],["The function does not return any value (void)."]]],[]]