Skip to content

Commit

Permalink
feat(md-sidenav): add show/hide functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanood committed Dec 22, 2016
1 parent 65165b0 commit 156fd68
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sidenav/sidenav-collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ export class MdSidenavCollapse {
// this.widthSubscription.unsubscribe();
}

show() {
$(this.element).sideNav('show');
}

hide() {
$(this.element).sideNav('hide');
}

// fixedChanged() {
// this.log.debug('fixedChanged');
// $(this.element).sideNav({
Expand Down

0 comments on commit 156fd68

Please sign in to comment.