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

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
* 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
  ...
  • Loading branch information
jonmiles committed May 9, 2015
2 parents 0c59fb3 + c6dfae1 commit 542f57e
Show file tree
Hide file tree
Showing 14 changed files with 2,624 additions and 591 deletions.
86 changes: 75 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,82 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

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

### New Features
- Node states `expanded` and `selected` to set a node's initial state
- Methods `getNode`, `getParent` and `getSiblings` methods
- Methods `selectNode`, `unselectNode` and `toggleNodeSelected` methods
- Events `nodeUnselected`
- Option `multiSelect`
- Methods `expandAll`, `collapseAll`, `expandNode`, `collapseNode` and `toggleNodeExpanded` methods
- Events `nodeExpanded` and `nodeCollapsed` events
- Methods `search` and `clearSearch` methods,
- Events `searchComplete` and `searchCleared` events
- Options `highlightSearchResults`, `searchResultColor` and `searchResultBackColor`

- Disable nodes, allow a tree node to disabled (not selectable, expandable or checkable)

- Added node state property `disabled` to set a node initial state

- Methods `disableAll`, `disableNode`, `enableAll`, `enableNode` and `toggleNodeDisabled` added to control state programmatically

- Events `nodeDisabled` and `nodeEnabled`

- Checkable nodes, allows a tree node to be checked or unchecked.

- Added node state property `checked` to set a node initial state

- Pass option `{showCheckbox: true}` to initialize tree view with checkboxes

- Use options `checkedIcon` and `uncheckedIcon` to configure checkbox icons

- Methods `checkAll`, `checkNode`, `uncheckAll`, `uncheckNode` and `toggleNodeChecked` to control state programmatically

- Events `nodeChecked` and `nodeUnchecked`

- New option + node property `selectedIcon` to support displaying different icons when a node is selected.

- New search option `{ revealResults : true | false }` which when set to true will automatically expand the tree view to reveal matching nodes

- New method `revealNode` which expands the tree view to reveal a given node

- New methods to retrieve nodes by state : `getSelected`, `getUnselected`, `getExpanded`, `getCollapsed`, `getChecked`, `getUnchecked`, `getDisabled` and `getEnabled`


### Changes
- Removed nodeIcon by default, by popular demand. Use `{nodeIcon: 'glyphicon glyphicon-stop'}` in initial options to add a node icon.

- Search behaviour, by default search will the expand tree view and reveal results. Alternatively pass `{revealResults:false}`

- Method collapseNode accepts new option `{ ignoreChildren: true | false }`. The default is false, passing true will leave child nodes uncollapsed


### Bug Fixes
- Remove unnecessary render in clearSearch when called from search

- Child nodes should collapse by default on collapseNode

- Incorrect expand collapse icon displayed when nodes array is empty




## v1.1.0 - 29th March, 2015

### New Features

- Added node state properties `expanded` and `selected` so a node's intial state can be set

- New get methods `getNode`, `getParent` and `getSiblings` for retrieving nodes and their immediate relations

- New select methods `selectNode`, `unselectNode` and `toggleNodeSelected`

- Adding `nodeUnselected` event

- New global option `multiSelect` which allows multiple nodes to hold the selected state, default is false

- New expand collapse methods `expandAll`, `collapseAll`, `expandNode`, `collapseNode` and `toggleNodeExpanded`

- Adding events `nodeExpanded` and `nodeCollapsed`

- New methods `search` and `clearSearch` which allow you to query the tree view for nodes based on a `text` value

- Adding events `searchComplete` and `searchCleared`

- New global options `highlightSearchResults`, `searchResultColor` and `searchResultBackColor` for configuring how search results are displayed




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

### Bug Fixes
- Events not unbound when re-initialised

- CSS selectors too general, affecting other page elements
Loading

0 comments on commit 542f57e

Please sign in to comment.