Advertisement
hecrus

clickGraphNode

Aug 28th, 2021
1,485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. as.crud2callbacks["table1_clickGraphNode"] = function(node){
  2.    // здесь показано действие по умолчанию
  3.    var s = "<h4>" + node.name + "</h4>";
  4.    var list = [];
  5.    node.eachAdjacency(function (adj) {
  6.        list.push(adj.nodeTo.name);
  7.    });
  8.    var el = $jit.id('as-visGraphNodePanel');
  9.    if(el) el.innerHTML = s + "<p class='text-muted small'>" + list.join(", ") +  "</p>";      
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement