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

Commit

Permalink
Merge pull request #10 from jakemac53/patch-1
Browse files Browse the repository at this point in the history
Add docs for togglePanel/openDrawer/closeDrawer
  • Loading branch information
frankiefu committed Jul 22, 2014
2 parents 8e71f37 + 2ca9829 commit 479f347
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core-drawer-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,29 @@
});
},

/**
* Toggles the panel open and closed.
*
* @method togglePanel
*/
togglePanel: function() {
this.selected = this.selected === 'main' ? 'drawer' : 'main';
},

/**
* Opens the drawer.
*
* @method openDrawer
*/
openDrawer: function() {
this.selected = 'drawer';
},

/**
* Closes the drawer.
*
* @method closeDrawer
*/
closeDrawer: function() {
this.selected = 'main';
},
Expand Down

0 comments on commit 479f347

Please sign in to comment.