All plugin events list ?

32 views
Skip to first unread message

Jian Li

unread,
Jan 13, 2015, 10:24:54 AM1/13/15
to dygraph...@googlegroups.com
Hello,

I want create a new plugin, after looking on the page https://github.com/danvk/dygraphs/tree/master/plugins
i can find 
----------------

Plugin Events Reference:

- predraw
- clearChart
- drawChart
- select
- deselect

TODO(danvk): document all event properties for each event.


Special methods:
- (constructor)
- activate
- destroy


----------------

But apparently there is more event like
-didDrawChart 
-willDrawChart

where can i find all event list and what all means?
for example what mean 'didDrawChart' and what's difference bettwen 'didDrawChart' and 'willDrawChart'??

Dan Vanderkam

unread,
Jan 13, 2015, 12:35:23 PM1/13/15
to dygraph...@googlegroups.com
The plugin API isn't official yet, which is why documentation is sparse.

If you want a complete list of events, grep the dygraphs code for calls to cadcadeEvent_, which dispatches plugin events.

{did,will}DrawChart are following the Cocoa convention for event naming. will means that the thing hasn't happened yet, did means that it has.

--
You received this message because you are subscribed to the Google Groups "dygraphs-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dygraphs-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages