From 2ca9829ff6be340486b5a3a8d469c92b03773a49 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Mon, 21 Jul 2014 14:54:50 -0700 Subject: [PATCH] Add docs for togglePanel/openDrawer/closeDrawer Even though these are trivial, this will expose these methods in the documentation viewer. --- core-drawer-panel.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core-drawer-panel.html b/core-drawer-panel.html index f198c80..611f768 100644 --- a/core-drawer-panel.html +++ b/core-drawer-panel.html @@ -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'; },