Edit: The code is here https://github.com/PolymerElements/polymer-starter-kit (I just ran polymer init as per the readme instructions)
When I try using
<paper-icon-button icon="menu" drawer-toggle></paper-icon-button>
Like in the docs, the button disappears. When I try using
<paper-icon-button icon="menu" paper-drawer-toggle></paper-icon-button>
The button reappears but doesn't work.
I've tried following some other examples like using onclick=drawer.toggle() in the tag, but I don't know how/where to define drawer. The same goes for trying to use
document.querySelector('paper-icon-button').addEventListener('tap', function() {
drawer.toggle();
});
It's a local DOM, so I need to get around that somehow. When I try using var drawer = this.$$('app-drawer') or this.$.'app-drawer' or any other syntax I could copy and paste, I just get errors. I'm clearly a newbie to Polymer, and after a good 6 hours of playing with this I'm lost and could use some guidance.