Zambezi Grid render with,
- nested column configuration
- virtualised rows and columns
- locked columns and rows
- column resize
- column drag.
Default configuration will be derived from the keys of the first defined row.
license: mit |
Zambezi Grid render with,
Default configuration will be derived from the keys of the first defined row.
<!doctype html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" type="text/css" href="https://npmcdn.com/[email protected]"> | |
<div class="grid-target"></div> | |
<script src="https://npmcdn.com/[email protected]"></script> | |
<script src="https://d3js.org/d3.v4.js"></script> | |
<script src="https://npmcdn.com/[email protected]/faker.js"></script> | |
<script src="https://npmcdn.com/@zambezi/[email protected]"></script> | |
<script src="https://npmcdn.com/@zambezi/[email protected]"></script> | |
<script src="https://npmcdn.com/@zambezi/[email protected]"></script> | |
<script> | |
var table = grid.createGrid() | |
, rows = _.range(1, 5000).map(_.compose(_.partial(_.pick, _, 'name', 'username', 'email'), faker.Helpers.createCard)) | |
d3.select('.grid-target') | |
.style('height', '500px') | |
.datum(rows) | |
.call(table) | |
</script> |