@mcmyst wrote:
Hi,
I am trying GoJS to see if it can be usefull in a project.
I can't find a way to dynamicaly generate the "text" property of a "PanelExpanderButton" so that it will be linked to a Panel "name" also dynamically generate. The value "tube_id" is unique.
Here is a part of the model:
itemTemplate: GOJS(go.Panel, "Table",{ column: 0 }, GOJS(go.TextBlock, new go.Binding("text", "tube"),{column: 0,margin: 4}), GOJS("PanelExpanderButton", new go.Binding("text", "tube_id"),{column: 1}), GOJS(go.Panel, "Vertical",new go.Binding("name", "tube_id"),{ padding: 2, itemTemplate: fieldTemplate, row : 1, column: 0, columnSpan: 2 }, new go.Binding("itemArray", "fibers")) )Here are the message that I got from the console:
Binding error: missing GraphObject named COLLAPSIBLE in Panel(Panel.Table)#19161
Binding error: cannot modify GraphObject.name on Panel(Panel.Vertical)#19168
Binding error: undefined target property: text on Panel(Panel.Auto)#19260Any ideas ?
Thank you
Posts: 2
Participants: 2