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'; },