Child pages
  • _listeners option description

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Div
classapi-table

Description

An object defining listener functions for the events supported by a component.

Notes

Both component developers and integrators can define listeners for events.

Example Definition

Code Block
javascript
javascript
fluid.defaults("component.name", {
    events: {
        onSave: "preventable",
        onReady: null
    },
    listeners: {
        onSave: component.name.saveValidatorFn
    },
    ...
});

Example Override

Code Block
javascript
javascript
var myComp = component.name(container, {
    listeners: {
        onReady: myReadyNotificationFn,
    },
    ...
});

See also

Infusion Event System