Using nodeSelected parameter.
This commit is contained in:
parent
2f3118797e
commit
13289761d0
|
@ -30,7 +30,10 @@ graph.newEdge(bianca, monty, {color: '#EB6841'});
|
||||||
|
|
||||||
jQuery(function(){
|
jQuery(function(){
|
||||||
var springy = jQuery('#springydemo').springy({
|
var springy = jQuery('#springydemo').springy({
|
||||||
graph: graph
|
graph: graph,
|
||||||
|
nodeSelected: function(node){
|
||||||
|
console.log('Node selected: ' + JSON.stringify(node.data));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user