Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Difficulties in adding node and moving to desired location

$
0
0

@anildes wrote:

Hi
I have several issue here ,
What Iam planning is remove the dropped node and add a another node when drop of 2 nodes is successful on a background Diagram .

The First issue I have to hard code the node as shown below , addnode does not work for me
myDiagram.model.addNodeData({key: "Rckasmbledptchpnl", color: green, source:"cat6assembledtotalrack.png" ,size: "50 50",pos: new go.Point(0, 0),level:"level1",parent:"rack"});

The second issue is when we add the above node it always goes to the Topmost left grid always ..
Please refer mouseDrop: function(e, node,prev) for the logic (Ignore prev not using anywhere)

Also I do not understand as to why I get Binding error: undefined target property at several places .





Planogram






.ui-accordion .ui-accordion-content {
padding: 1px;
}








Your browser does not support the audio element.





Patch Panels





Connectors





Cabinets





Big items




     <h4>Assembled items</h4>
	<div>
	 <div id="myPaletteAssembled" style="width: 140px; height: 360px"></div>
    </div>
  </div>
</span>
<span style="display: inline-block; vertical-align: top; width:80%">
  <div id="myDiagramDiv" style="border: solid 1px black; height: 500px"></div>
</span>



  


See also Northwoods Software's planogramming services: GoPlanogram.



Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles