ui.root.remove

Removes the given widget from the root panel, if it exists.

Returns the removed widget or null if the widget was not present in the root panel.

UsageReturns
ui.root.remove(widget)Object
ArgumentTypeDetails
widgetui.Widget

The widget to remove.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!