This shows a variable number of selectable "fields" for each "record".
To select multiple fields press Ctrl + Click
or on mac
Cmd + Click
. Draw new links by dragging from the background of
any field. Reconnect a selected link by dragging its diamond-shaped handle.
The user can delete a selected field.
The model data, automatically updated after each change or undo or redo:
This sample was derived from the Records sample.
The "Table" Panel, Panel.Table, arranges objects in rows and columns. Each object in a Table Panel is put into the cell indexed by the value of GraphObject.row and GraphObject.column. The panel will look at the rows and columns for all of the objects in the panel to determine how many rows and columns the table should have. More information can be found in the GoJS Intro.
It is sometimes useful to display a variable number of elements in a node by data binding to a JavaScript Array. In GoJS, this is simply achieved by binding (or setting) Panel.itemArray. The Panel will create an element in the panel for each value in the Array. More information can be found in the GoJS Intro.