Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 3, 2016
1 parent 1075233 commit 388a4e0
Showing 1 changed file with 1 addition and 64 deletions.
65 changes: 1 addition & 64 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,70 +80,7 @@ console.log(nodes);

## Examples

Given a hierarchical tree structure like below:

```json
{
"id": "<root>",
"label": "<root>",
"children": [
{
"id": "alpha",
"label": "Alpha"
},
{
"id": "bravo",
"label": "Bravo",
"children": [
{
"id": "charlie",
"label": "Charlie",
"children": [
{
"id": "delta",
"label": "Delta",
"children": [
{
"id": "echo",
"label": "Echo"
},
{
"id": "foxtrot",
"label": "Foxtrot"
}
]
},
{
"id": "golf",
"label": "Golf"
}
]
},
{
"id": "hotel",
"label": "Hotel",
"children": [
{
"id": "india",
"label": "India",
"children": [
{
"id": "juliet",
"label": "Juliet"
}
]
}
]
},
{
"id": "kilo",
"label": "Kilo"
}
]
}
]
}
```
Given a hierarchical tree structure like [this](https://github.com/cheton/flattree/blob/master/test/fixtures/tree.json), you can build a tree in any form. For example:

### Flat List View
File: [examples/test1.js](https://github.com/cheton/flattree/blob/master/examples/tree1.js)
Expand Down

0 comments on commit 388a4e0

Please sign in to comment.