Hello,
Contrary to the GraphLinksModel I have seen in your examples, I have structured node data, like so:
{
<span =“Apple-tab-span” style=“white-space:pre”> key: “1”,
<span =“Apple-tab-span” style=“white-space:pre”> category: “NodeCategory1”,
<span =“Apple-tab-span” style=“white-space:pre”> element: {
<span =“Apple-tab-span” style=“white-space:pre”> name: “Test”,
<span =“Apple-tab-span” style=“white-space:pre”> description: “TestDescription”
<span =“Apple-tab-span” style=“white-space:pre”> },
<span =“Apple-tab-span” style=“white-space:pre”> …
}
But when I try to bind a TextBlock’s text property in a node template to the element.name property in my node data ($(go.TextBlock, new go.Binding(“text”, “element.name”))), there is nothing displayed in that node.
Presumably, it is not possible to bind with an “a.b” notation, although I did not see anything related to this in your documentation.
Would you have any recommendation as to how how could make this work (using a two-way binding especially)? Or is there no choice and the node data to be bound to needs to be flat?
Thanks in advance,
Marc.