gojs
Version:
Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams
34 lines (33 loc) • 1.44 kB
HTML
<html>
<head>
<meta charset="UTF-8">
<title>Scrolling Table</title>
<meta name="description" content="TypeScript: Allow users to scroll the items in a Table Panel." />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Copyright 1998-2020 by Northwoods Software Corporation. -->
<script src="../samples/assets/require.js"></script>
<script src="../assets/js/goSamples.js"></script> <!-- this is only for the GoJS Samples framework -->
<script id="code">
function init() {
require(["ScrollingTableScript", "ScrollingTable"], function(app) {
app.init();
});
}
</script>
</head>
<body onload="init()">
<div id="sample">
<div id="myDiagramDiv" style="border: solid 1px black; width:100%; height:600px"></div>
<p>
This makes use of the "ScrollingTable" Panel defined in <a href="ScrollingTable.ts">ScrollingTable.ts</a>.
The "AutoRepeatButton" Panel is also defined in that file. Each node is resizable.
</p>
<p>
Note how links connect particular port elements on each node. When an element has a <a>GraphObject.index</a> less than
the <a>Panel.topIndex</a>, the panel arranges it be zero sized at the top of the panel. Similarly, elements beyond the
last item in the panel are arranged to be at the end of the list, which may be at the bottom of the panel.
</p>
</div>
</body>
</html>