Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 542f57e

Browse files
committed
Merge branch 'release/1.2.0'
* release/1.2.0: (36 commits) Version updated to v1.2.0 README fix Release notes updated Removed nodeIcon by default #3 Fix for #77, stops unnecessary re-render when calling search Release notes updated to include checkbox + disable node changes Implementation, doc + tests #51 Initial idea prototyped #51 Refactored toggle methods Refactored API methods Examples updated Doc update Check / uncheck methods added Added events and show methods Initial idea prototyped. Tweaked selectedIcon logic Change log updated Change log updated Distro Adds support for selectedIcon ...
2 parents 0c59fb3 + c6dfae1 commit 542f57e

14 files changed

+2624
-591
lines changed

CHANGELOG.md

Lines changed: 75 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,82 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## v1.1.0 - 29th March, 2015
5+
## v1.2.0 - 9th May, 2015
66

77
### New Features
8-
- Node states `expanded` and `selected` to set a node's initial state
9-
- Methods `getNode`, `getParent` and `getSiblings` methods
10-
- Methods `selectNode`, `unselectNode` and `toggleNodeSelected` methods
11-
- Events `nodeUnselected`
12-
- Option `multiSelect`
13-
- Methods `expandAll`, `collapseAll`, `expandNode`, `collapseNode` and `toggleNodeExpanded` methods
14-
- Events `nodeExpanded` and `nodeCollapsed` events
15-
- Methods `search` and `clearSearch` methods,
16-
- Events `searchComplete` and `searchCleared` events
17-
- Options `highlightSearchResults`, `searchResultColor` and `searchResultBackColor`
8+
9+
- Disable nodes, allow a tree node to disabled (not selectable, expandable or checkable)
10+
11+
- Added node state property `disabled` to set a node initial state
12+
13+
- Methods `disableAll`, `disableNode`, `enableAll`, `enableNode` and `toggleNodeDisabled` added to control state programmatically
14+
15+
- Events `nodeDisabled` and `nodeEnabled`
16+
17+
- Checkable nodes, allows a tree node to be checked or unchecked.
18+
19+
- Added node state property `checked` to set a node initial state
20+
21+
- Pass option `{showCheckbox: true}` to initialize tree view with checkboxes
22+
23+
- Use options `checkedIcon` and `uncheckedIcon` to configure checkbox icons
24+
25+
- Methods `checkAll`, `checkNode`, `uncheckAll`, `uncheckNode` and `toggleNodeChecked` to control state programmatically
26+
27+
- Events `nodeChecked` and `nodeUnchecked`
28+
29+
- New option + node property `selectedIcon` to support displaying different icons when a node is selected.
30+
31+
- New search option `{ revealResults : true | false }` which when set to true will automatically expand the tree view to reveal matching nodes
32+
33+
- New method `revealNode` which expands the tree view to reveal a given node
34+
35+
- New methods to retrieve nodes by state : `getSelected`, `getUnselected`, `getExpanded`, `getCollapsed`, `getChecked`, `getUnchecked`, `getDisabled` and `getEnabled`
36+
37+
38+
### Changes
39+
- Removed nodeIcon by default, by popular demand. Use `{nodeIcon: 'glyphicon glyphicon-stop'}` in initial options to add a node icon.
40+
41+
- Search behaviour, by default search will the expand tree view and reveal results. Alternatively pass `{revealResults:false}`
42+
43+
- Method collapseNode accepts new option `{ ignoreChildren: true | false }`. The default is false, passing true will leave child nodes uncollapsed
44+
45+
46+
### Bug Fixes
47+
- Remove unnecessary render in clearSearch when called from search
48+
49+
- Child nodes should collapse by default on collapseNode
50+
51+
- Incorrect expand collapse icon displayed when nodes array is empty
52+
53+
54+
55+
56+
## v1.1.0 - 29th March, 2015
57+
58+
### New Features
59+
60+
- Added node state properties `expanded` and `selected` so a node's intial state can be set
61+
62+
- New get methods `getNode`, `getParent` and `getSiblings` for retrieving nodes and their immediate relations
63+
64+
- New select methods `selectNode`, `unselectNode` and `toggleNodeSelected`
65+
66+
- Adding `nodeUnselected` event
67+
68+
- New global option `multiSelect` which allows multiple nodes to hold the selected state, default is false
69+
70+
- New expand collapse methods `expandAll`, `collapseAll`, `expandNode`, `collapseNode` and `toggleNodeExpanded`
71+
72+
- Adding events `nodeExpanded` and `nodeCollapsed`
73+
74+
- New methods `search` and `clearSearch` which allow you to query the tree view for nodes based on a `text` value
75+
76+
- Adding events `searchComplete` and `searchCleared`
77+
78+
- New global options `highlightSearchResults`, `searchResultColor` and `searchResultBackColor` for configuring how search results are displayed
79+
80+
1881

1982

2083
## v1.0.2 - 6th February, 2015
@@ -24,4 +87,5 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2487

2588
### Bug Fixes
2689
- Events not unbound when re-initialised
90+
2791
- CSS selectors too general, affecting other page elements

0 commit comments

Comments
 (0)