onPopupEvents([callback], [remove])

Class: ComboBox.

Description:

Registers, unregisters and gets a list of handler functions for the popup list events (when the popup becomes visible and hidden).

Parameters:

Name Type Description

[callback]

function

Handler function receiving PopupEvent object. Pass null to unregister all handler callbacks.

[remove]

boolean

Set to true to unregister the handler function.

Returns:

Returns an array of registered handler functions if arguments are omitted, otherwise returns this component instance.

Type: Array.<function()> | ComboBox

Examples:

// event Object format:
const e = {
  target: object,        // The component that triggered the event.
  type: string,          // `show`, `hide`, `cancel`.
  x: number,             // Component's X position
  y: number,             // Component's Y position
  interactive: boolean,  // Indicates if the popup was triggered by user's interaction (not programmatically).
};

Also See: