Its just a tree. A tree view. A file tree. A menu tree. A tree for you.
The missing Polymer 2.x webcomponent.
Preview version!
Example 1
<csak-tree branchiconopen="vaadin:minus-square-o" branchicon="vaadin:plus-square-o" expanded>
<csak-tree-item>Branch
<csak-tree-item>Branch
<csak-tree-item>Leaf</csak-tree-item>
<csak-tree-item>Leaf</csak-tree-item>
</csak-tree-item>
<csak-tree-item>Branch
<csak-tree-item>Leaf</csak-tree-item>
<csak-tree-item>Leaf</csak-tree-item>
</csak-tree-item>
</csak-tree-item>
</csak-tree>
Example2
<csak-tree branchiconopen="vaadin:minus-square-o" branchicon="vaadin:plus-square-o"
data='{
"children ": [
{
"name": "Branch",
"children": [
{
"name": "Branch",
"children": [
{
"name": "Leaf"
},
{
"name": "Leaf"
}
]
} ,
{
"name": "Branch",
"children": [
{
"name": "Leaf"
},
{
"name": "Leaf"
}
]
}
]
}
]
}' expanded>
</csak-tree>
First you need bower, see their site for details
bower install --save csak-tree
Custom property | Description | Default |
---|---|---|
--csak-tree-item-indent | Items indent value | 1em |
--iron-icon-width | Inherited css variable | 16px |
- menutree
- classic treeview
- custom tree
- filetree
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D