$ bower install gaia-components/gaia-drawer
<script src="bower_components/gaia-drawer/script.js"></script>
<gaia-drawer>
<p>Some content hidden in the drawer</p>
</gaia-drawer>
open
- Forces the drawer open.
Open the drawer.
Close the drawer.
Toggle the drawer open/closed. Similar classList.toggle()
, if you pass a boolean, that will override the current state.
drawer.toggle(); //=> will toggle
drawer.toggle(true); //=> will always open
drawer.toggle(false); //=> will always close