Skip to content

Instantly share code, notes, and snippets.

@Xerosigma
Last active December 6, 2015 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xerosigma/c912f17336915ee66d2b to your computer and use it in GitHub Desktop.
Save Xerosigma/c912f17336915ee66d2b to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
width: 100%;
height: 100%;
box-sizing: border-box;
}
#paper_input {
margin: 2%;
}
#core_card {
width: 88%;
height: 74%;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#core_pages {
width: 98%;
height: 98%;
}
</style>
<core-card id="core_card" layout vertical>
<core-pages selected="0" selectedindex="0" notap id="core_pages">
<section id="section" active>Page One</section>
<section id="section1">Page Two</section>
</core-pages>
<paper-input label="Type something..." id="paper_input"></paper-input>
<paper-button id="paper_button" on-tap="{{sendMessage}}">SEND</paper-button>
</core-card>
</template>
<script>
Polymer({
sendMessage: function () { alert("hit");/* TODO: Send Message */ }
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment