Last active
August 29, 2015 14:15
-
-
Save alifhaikal88/4c0122726ec4980a0938 to your computer and use it in GitHub Desktop.
designer
This file contains hidden or 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-input/core-input.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
top: 0px; | |
left: 0px; | |
} | |
#input { | |
padding: 15px; | |
left: 210px; | |
top: 140px; | |
position: absolute; | |
} | |
#core_icon_button { | |
left: 440px; | |
top: 140px; | |
position: absolute; | |
} | |
</style> | |
<input id="input" placeholder="type something..." is="core-input" value="{{number}}"> | |
<core-icon-button icon="menu" id="core_icon_button" theme="core-light-theme" on-tap="{{increment}}"></core-icon-button> | |
</template> | |
<script> | |
Polymer({ | |
number : 0, | |
increment : function() { | |
this.number++; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment