Using nodeSelected parameter.

This commit is contained in:
lowerkey 2012-09-26 18:21:33 +03:00
parent 2f3118797e
commit 13289761d0

View File

@ -30,7 +30,10 @@ graph.newEdge(bianca, monty, {color: '#EB6841'});
jQuery(function(){
var springy = jQuery('#springydemo').springy({
graph: graph
graph: graph,
nodeSelected: function(node){
console.log('Node selected: ' + JSON.stringify(node.data));
}
});
});
</script>