Class: c3.Dispatch
Defined in: | js/c3.coffee |
Overview
A mixin to add support for registering and triggering events
Instance Method Summary
- # (void) on(event, handler) Register an event handler to catch events fired by the visualization.
- # (void) trigger(event, args...) Trigger an event for this visualization.
Constructor Details
#
(void)
constructor()
Instance Method Details
#
(void)
on(event, handler)
Register an event handler to catch events fired by the visualization.
Multiple handlers can be set by specifying a namespace for the event name like event.namespace
Remove a handler by passing null
for the handler
#
(void)
trigger(event, args...)
Trigger an event for this visualization. Do not specify a namespace here.