googlearchive / core-scaffold

A general application layout containing a header, toolbar, menu, title and areas for application content
17 stars 16 forks source link

how to set core-drawer-panel closed by default in core-scaffold component ? #16

Closed ThibzThibz closed 7 years ago

ThibzThibz commented 10 years ago

I'd like to have a core-scaffold with the core-drawer-panel closed by default, and manage the state (open/close) of this drawer with the menuButton, regardless the responsiveWidth. When trying to use togglePanel and closeDrawer methods ... get undefined error. Thanks for help

frankiefu commented 10 years ago

You can set responsiveWidth to be very large to force in narrow mode. togglePanel and closeDrawer should work, sounds like you were not calling the method on core-scaffold element. Also if you want to have more customizations I would suggest to use the core-drawer-panel and core-header-panel to build your own app layout, like this: http://jsbin.com/ceqawoxize/1/edit

vinyll commented 8 years ago

There's a undocumented hidden property.

Polymer({
   ready: function(){
      my_drawer.hidden = true;
   }
});