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

[SeatingChart]_Structure of guest model

$
0
0

@nmvuong wrote:

Dear all,
The example shows this:

  myGuests.model = new go.GraphLinksModel([
    { key: "Tyrion Lannister" },
    { key: "Daenerys Targaryen", plus: 3 },  // dragons, of course       
    { key: "Hodor" }
  ]);

Using “key” as a text to display. Now I want to re-define this structure like this

  myGuests.model = new go.GraphLinksModel([
    { key: "1", name: "Tyrion Lannister" },
    { key: "2", name: "Daenerys Targaryen", plus: 3 },  // dragons, of course       
    { key: "3", name: "Hodor" }
  ]);

and use key as ID(identify) and name for displaying.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles