Skip to content

Commit

Permalink
append noncollapsable className to css file
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeng committed Jun 22, 2016
1 parent 27c07a4 commit 2433de0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,15 @@ This method is designed to get the hierarchy relationships of orgchart for furth
</tbody>
</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)
Users can enable/disable exapand/collapse feature with className "noncollapsable" as shown below.
```js
$('.orgchart').addClass('noncollapsable');

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

## Browser Compatibility
- Chrome 19+
- Firefox 4+
Expand Down
4 changes: 4 additions & 0 deletions dist/css/jquery.orgchart.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@
-webkit-transition: .2s;
}

.orgchart.noncollapsable .node .edge {
display: none;
}

.orgchart .edge:hover {
color: #449d44;
cursor: pointer;
Expand Down
4 changes: 4 additions & 0 deletions examples/css/jquery.orgchart.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@
-webkit-transition: .2s;
}

.orgchart.noncollapsable .node .edge {
display: none;
}

.orgchart .edge:hover {
color: #449d44;
cursor: pointer;
Expand Down

0 comments on commit 2433de0

Please sign in to comment.