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

Commit

Permalink
Add docs for togglePanel/openDrawer/closeDrawer
Browse files Browse the repository at this point in the history
Even though these are trivial, this will expose these methods in the documentation viewer.
  • Loading branch information
jakemac53 committed Jul 21, 2014
1 parent 8e71f37 commit 2ca9829
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 2ca9829

Please sign in to comment.