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.