Passing arguments to event handlers

13 views
Skip to first unread message

Santiago Acosta

unread,
Apr 21, 2016, 11:43:02 AM4/21/16
to Google Visualization API
The documentation speaks of some arguments to pass to event handlers:

The name of the local JavaScript function to call when source_visualization fires the event_name event. The handling function will be passed any event arguments as parameters

The trigger method has an explicit parameter precisely for this. It is even documented in the interface signatures (which are outdated)

google.visualization.events.trigger = function(eventSource, eventName, eventDetails) {};

Do the events.addOneTimeListener and events.addListener have an undocumented parameter that allows the injection of event details?
Reply all
Reply to author
Forward
0 new messages