ui.Button.unlisten

Stay organized with collections Save and categorize content based on your preferences.

Deletes callbacks.

UsageReturns
Button.unlisten(idOrType)
ArgumentTypeDetails
this: ui.widgetui.WidgetThe ui.Widget instance.
idOrTypeString, optionalEither an ID returned by an onEventType() function during callback registration, an event type, or nothing. If an ID is passed, the corresponding callback is deleted. If an event type is passed, all callbacks for that type are deleted. If nothing is passed, all callbacks are deleted.