This is a minimalist HTML and JavaScript skeleton of the GoJS Sample gLayout.html. It was automatically generated from a button on the sample page, and does not contain the full HTML. It is intended as a starting point to adapt for your own usage. For many samples, you may need to inspect the full source on Github and copy other files or scripts.

GridLayout Properties
Wrapping Column: (NaN means there's no limit)
Wrapping Width: (NaN means use the diagram's viewport width)
Cell Size: (NaN x NaN means use a cell size big enough to hold any node)
Spacing: (the minimum space between the nodes)
Alignment: Position Location
Arrangement: LeftToRight RightToLeft
Sorting:
This text is displayed if your browser does not support the Canvas HTML element.

For information on GridLayout and its properties, see the GridLayout documentation page.

GoJS version 2.2.15. Copyright 1998-2022 by Northwoods Software.

View this sample page's source on GitHub