Event handling

Forums SPJS Charts for SharePoint Event handling

Viewing 1 reply thread
  • Author
    Posts
    • #12905
      Kessy Similien
      Participant

      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.

    • #12940
      Alexander Bautz
      Keymaster

      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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.