Skip to content

Commit

Permalink
Fixes #68 child nodes not collapsing when collapseNode called.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmiles committed Apr 13, 2015
1 parent e34b1bb commit 7f1d89c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,15 @@ Triggers `nodeCollapsed` event; pass silent to suppress events.

#### collapseNode(node | nodeId, options)

Collapse a given tree node, accepts node or nodeId
Collapse a given tree node and it's child nodes. If you don't want to collapse the child nodes, pass option `{ ignoreChildren: true }`.

```javascript
$('#tree').treeview('collapseNode', [ nodeId, { silent: true } ]);
$('#tree').treeview('collapseNode', [ nodeId, { silent: true, ignoreChildren: false } ]);
```

Triggers `nodeCollapsed` event; pass silent to suppress events.


#### expandAll(options)

Expand all tree nodes. Optionally can be expanded to any given number of levels.
Expand Down
Loading

0 comments on commit 7f1d89c

Please sign in to comment.