bower install angularjs-tree-grid
angular.module('MyModule', ['angularjs-tree-grid']);
<script type="text/javascript" src="bower_components/angularjs-tree-grid/angularjs-tree-grid.js"></script>
<tree-grid nodes="exampleNodes" node-selected="nodeSelected(selectedNode)">
<options children-key="children">
<columns>
<column key="name" header="Name"></column>
<column key="attribute" header="Attribute"></column>
</columns>
</options>
</tree-grid>
...
Option | Description |
---|---|
options.children-key | The name of the property of each node that contains children |
options.columns | The array of columns |
options.columns.key | The name of the property on each node that should be used for the column |
options.columns.header | The header of the column (what is displayed in the first/header row of the table) |