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

Add docs for togglePanel/openDrawer/closeDrawer #10

Merged
merged 1 commit into from
Jul 22, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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