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

Commit

Permalink
add "scroller" property which returns the scrollable element on the main
Browse files Browse the repository at this point in the history
area.
  • Loading branch information
frankiefu committed Nov 12, 2014
1 parent 143b42f commit ef30da3
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions core-scaffold.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,29 +209,39 @@
},

/**
* Toggle the drawer panel
* @method togglePanel
*/
* Toggle the drawer panel
* @method togglePanel
*/
togglePanel: function() {
this.$.drawerPanel.togglePanel();
},

/**
* Open the drawer panel
* @method openDrawer
*/
* Open the drawer panel
* @method openDrawer
*/
openDrawer: function() {
this.$.drawerPanel.openDrawer();
},

/**
* Close the drawer panel
* @method closeDrawer
*/
* Close the drawer panel
* @method closeDrawer
*/
closeDrawer: function() {
this.$.drawerPanel.closeDrawer();
},

/**
* Returns the scrollable element on the main area.
*
* @property scroller
* @type Object
*/
get scroller() {
return this.$.headerPanel.scroller;
},

scroll: function(e) {
this.fire('scroll', {target: e.detail.target}, this, false);
}
Expand Down

0 comments on commit ef30da3

Please sign in to comment.