Class: ChartEventsExtender

StockChartX. ChartEventsExtender


<abstract> new ChartEventsExtender()

The abstract class that extends chart events.

Methods


fire(event, newValue, oldValue)

Fires event.
Parameters:
Name Type Argument Description
event String The event name.
newValue * <optional>
The new property value.
oldValue * <optional>
The old property value.
Example
obj.fire('custom_event', 'new value', 'old value');

suppressEvents(suppress)

Suppresses/Allows all events.
Parameters:
Name Type Argument Default Description
suppress boolean <optional>
true The flag to suppress or resume events raising.
Returns:
The old value.
Type
boolean
Examples

Suppress events

 obj.suppressEvents();

Resume events

 obj.suppressEvents(false);