Child pages
  • _listeners option description

Documentation for a historical release of Infusion: 1.4
Please view the Infusion Documentation site for the latest documentation, or the Infusion 1.3. Documentation for the previous release.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Skip to end of metadata
Go to start of metadata

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

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

Example Override

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

See also

Infusion Event System

  • No labels