Last active
August 29, 2015 14:10
-
-
Save ewgenius/23996c081a0a823a6857 to your computer and use it in GitHub Desktop.
designer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
core_drawer_panel { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
core_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
core_header_panel[drawer] .content { | |
background-color: rgb(204, 204, 204); | |
} | |
.content { | |
height: 100px; | |
width: 100%; | |
} | |
</style> | |
<core-drawer-panel transition selected="main" id="core_drawer_panel" touch-action> | |
<core-header-panel mode="standard" id="core_header_panel1" drawer> | |
<core-toolbar id="core_toolbar1"> | |
<span flex>yosmm</span> | |
</core-toolbar> | |
<div class="content"> | |
kjhkjhkjh | |
</div> | |
</core-header-panel> | |
<core-header-panel mode="standard" id="core_header_panel" main> | |
<core-toolbar id="core_toolbar"> | |
<paper-icon-button icon="menu" id="menu_button"></paper-icon-button> | |
<span flex>instagram</span> | |
</core-toolbar> | |
<div class="content"> | |
kjhkjhkjh | |
</div> | |
</core-header-panel> | |
</core-drawer-panel> | |
</template> | |
<script> | |
Polymer({ | |
init: function (components) { | |
console.log('init'); | |
components.menu_button.addEventListener('click', function () { | |
components.core_drawer_panel.togglePanel(); | |
console.log('click'); | |
}); | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment