Skip to content

seanmcilvenna/angularjs-tree-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Install with Bower

bower install angularjs-tree-grid

Add dependency to module

angular.module('MyModule', ['angularjs-tree-grid']);

Usage

<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>

Example

...

Options

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)

☕ Support My Work

Find this useful and want to show appreciation??

Buy Me a Coffee

Your support helps keep this project alive and motivates me to continue improving it! 🚀

About

A bootstrap-compatible angular.js tree grid

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages