Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeng authored Jun 22, 2016
1 parent 2433de0 commit 06eb734
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -590,12 +590,15 @@ This method is designed to get the hierarchy relationships of orgchart for furth
</table>

### Tips
- **How can I deactivate expand/collapse feature of orgchart?**(inspired by the [issue](https://github.com/dabeng/OrgChart/issues/25). Thank der-robert and ActiveScottShaw for their constructive discussions:blush)
- **How can I deactivate expand/collapse feature of orgchart?**

This use case is inspired by the [issue](https://github.com/dabeng/OrgChart/issues/25). Thank @der-robert and @ActiveScottShaw for their constructive discussions:blush)

Users can enable/disable exapand/collapse feature with className "noncollapsable" as shown below.
```js
$('.orgchart').addClass('noncollapsable');
$('.orgchart').addClass('noncollapsable'); // deactivate

$('.orgchart').removeClass('noncollapsable');
$('.orgchart').removeClass('noncollapsable'); // activate
```

## Browser Compatibility
Expand Down

0 comments on commit 06eb734

Please sign in to comment.