Dynamic Ports in Data Flow Diagram


Can you please help me with sample to create dynamic ports in data flow diagram.

I also gone through dynamic port diagram, but there I am unable to add text to each port and also diagram is not getting aligned as in data flow diagram.

Can you please help me in this.

I assume you have read GoJS Item Arrays-- Northwoods Software.

So you know that adding a port is merely a matter of calling Model.insertArrayItem on the appropriate Array with a new object to be represented by a port. Similarly, call Model.removeArrayItem to remove a port.