jsx3.gui.ButtonAPI


DestroyFires after this button is removed from the DOM.
ExecuteFires after the user clicks this button or after an equivalent event.
MenuFires after the user right-clicks this button and before the bound context menu displays.

Executejsxexecute

Fires after the user clicks this button or after an equivalent event.

Context Variables

this {jsx3.gui.Button} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event. May be null if this event is triggered by calling doExecute().

Menujsxmenu

Fires after the user right-clicks this button and before the bound context menu displays. Canceling this event prevents the menu from displaying.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.Button} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objMENU {jsx3.gui.Menu} - the menu to display.

Return Fields

objMENU {jsx3.gui.Menu} - use this field to override the default menu with an instance of jsx3.gui.Menu.

Destroyjsxdestroy

Fires after this button is removed from the DOM.

Context Variables

this {jsx3.gui.Button} - the object that publishes this event.
objPARENT {jsx3.app.Model} - the parent of this button before it is removed from the DOM.