Observable

fabric. Observable

Methods

(static) fire(eventName, optionsopt) → {Self}

Source:
Fires event with an optional options object
Parameters:
Name Type Attributes Description
eventName String Event name to fire
options Object <optional>
Options object
Returns:
thisArg
Type
Self

off(eventName, handler) → {Self}

Source:
Stops event observing for a particular event handler. Calling this method without arguments removes all handlers for all events
Parameters:
Name Type Description
eventName String | Object Event name (eg. 'after:render') or object with key/value pairs (eg. {'after:render': handler, 'selection:cleared': handler})
handler function Function to be deleted from EventListeners
Returns:
thisArg
Type
Self

on(eventName, handler) → {Self}

Source:
Observes specified event
Parameters:
Name Type Description
eventName String | Object Event name (eg. 'after:render') or object with key/value pairs (eg. {'after:render': handler, 'selection:cleared': handler})
handler function Function that receives a notification when an event of the specified type occurs
Returns:
thisArg
Type
Self