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.WidgetThe widget to remove.