ui.root.clear

Clears the root panel.

UsageReturns
ui.root.clear()

No arguments.

Examples

Code Editor (JavaScript)

// Replace the default UI widgets with a few custom widgets.
ui.root.clear();
ui.root.add(ui.Label('This is a custom user interface.'));