Skip to content

Instantly share code, notes, and snippets.

@dimshik100
Last active August 29, 2015 14:26
Show Gist options
  • Save dimshik100/ed1609e4495c133d539f to your computer and use it in GitHub Desktop.
Save dimshik100/ed1609e4495c133d539f to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#paper_button {
left: 490px;
top: 240px;
position: absolute;
background-color: rgb(54, 242, 49);
}
</style>
<paper-button id="paper_button">button</paper-button>
</template>
<script>
Polymer({
ready:function() {
debugger;
var btn = document.getElementById('paper_button');
btn.addEventListener('click',function(){alert('dsfsdfsfd');});
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment