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