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

Dynamic node creation

$
0
0

@sharmaDevashish1 wrote:

Hi, i am trying to catch the drop event on canvas and using that i want to add a new device to the canvas along with the one being created.
I am able to catch the drop event by adding listener but when i add the new node in canvas it is not reflected in model and i'am not able to use it.

this is the code i am trying -

the method makeComponent creates a node and i add it using diagram.add().
is there any other way to do this.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles