destroy([recursive])

Class: RadioButtonMenuItem. Method inherited from UIComponent.

Description:

Removes the component from its container, destroys event callbacks, unregisters the component, recycles the component ID. Also prepares this component to be garbage-collected in JavaScript and GUI to free RAM.

Parameters:

Name Type Default Description

[recursive]

boolean

false

Set to true to also destroy all of its descendants recursively

Returns:

Type: void