Skip to content

Instantly share code, notes, and snippets.

@zs-sz
Last active August 29, 2015 14:16
Show Gist options
  • Save zs-sz/64650760bfcb1709cd62 to your computer and use it in GitHub Desktop.
Save zs-sz/64650760bfcb1709cd62 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#paper_item {
left: 160px;
top: 120px;
position: absolute;
}
#paper_toggle_button {
left: 20px;
top: 20px;
position: absolute;
}
</style>
<paper-item id="paper_item" icon="settings" label="Item"></paper-item>
<paper-toggle-button id="paper_toggle_button" touch-action="pan-y"></paper-toggle-button>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment