Note that there are some explanatory texts on larger screens.

plurals
  1. POInfoVis SpaceTrees: node information update after form submit
    primarykey
    data
    text
    <p>I'm trying to use InfoVis SpaceTree to allow users to manage some information. Upon clicks on a node, a form is created and shown to the user, which allows him to update that specific node's properties, by ajax.</p> <p>Also, the tree is displayed using the "on demand" nodes pattern, so I have specific methods to retrieve any subtree with any depth for a specific node, using ajax and json data.</p> <p>My problem lies on the node information update after the user submits a node's form. For example, the node's name on the label should be updated after the user submits a name change to the node. Like this, there are (many) other properties that should be reflected on the label and the user is allowed to change.</p> <p>What I need is to update the internal representation of a single node after a form submit has been done, and redraw the tree. </p> <p><strong>Ideally</strong>, I wanted to "batch" update all the node's properties at once, using the same method I use for "on-demand" nodes, i.e., getting the newly updated node information by ajax: </p> <ol> <li>user updates node </li> <li>node is deleted from tree</li> <li>async request is made to get the updated node's information</li> <li>node is re-inserted on tree; tree is re-drawn</li> </ol> <p>I've tried to use <code>.graph.removeNode()</code> and <code>.graph.addNode()</code> functions, but this screws up the tree layout. The add and remove subtree facilities are not an option because then I would have to request a large amount of information and re-insert the whole subtree when only 1 node was updated.</p> <p>Is there any method or mechanism I can use to change the whole node's internal representation at once?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload