Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:cheton/flattree into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 3, 2016
2 parents 048524f + 388a4e0 commit 5f906b0
Showing 1 changed file with 2 additions and 65 deletions.
67 changes: 2 additions & 65 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 Expand Up @@ -208,7 +145,7 @@ File: [examples/test4.js](https://github.com/cheton/flattree/blob/master/example
Kilo (.1.2)
```

## Node API
## Node API Documentation

#### node.getChildAt(index)
Gets a child node at the specified index.
Expand Down

0 comments on commit 5f906b0

Please sign in to comment.