Event handling
- This topic has 1 reply, 2 voices, and was last updated 10 years, 2 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › SPJS Charts for SharePoint › Event handling
How would I handle events? I’ve looked at the documentation and tried:
<script type="text/javascript">
$(function() {
var chart = spjs.charts.data.chartData
google.visualization.events.addListener(chart, 'ready', function() {
alert('Chart is ready')
$("a.active").closest('td').addClass("td-active")
$("a.new").closest('td').addClass("td-new")
$("a.deleted").closest('td').addClass("td-deleted")
});
})
</script>
I put this in my spjs_charts_master.html at the bottom but it’s not firing at all.
Hi,
I haven’t had time to complete the use manual, but have now added a section that describes hos to attach the select event and a ready event.
You find it here – let me know if you need any more information.
Best regards,
Alexander