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

Binding to parent value

$
0
0

@llopht wrote:

My model is like :

const nodeDataArray = [
  {
    key: 'node1',
    ports: [
      in: [
        { portId: 'i1', text: 'input 1' },
        { portId: 'i2', text: 'input 2' },
      ],
      out: []
  }
]

I use multiple itemArray (ports.in, ports.out, etc.) to create ports with a basic itemTemplate.

In this itemTemplate a binding refer to the json node corresponding to the current item.

But how to create a binding to get a property from his node parent like the key (or a default value for each ports).

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles