Skip to content

Instantly share code, notes, and snippets.

@msuchecki
Last active August 29, 2015 14:12
Show Gist options
  • Save msuchecki/0fa0e41a9f65c28219a1 to your computer and use it in GitHub Desktop.
Save msuchecki/0fa0e41a9f65c28219a1 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-pages/core-pages.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#paper_tabs {
width: 480px;
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
left: 180px;
top: 20px;
position: absolute;
background-color: rgb(0, 188, 212);
}
#core_pages {
width: 400px;
height: 400px;
border: 1px solid silver;
left: 180px;
top: 70px;
position: absolute;
}
</style>
<paper-tabs selected="{{ selected }}" id="paper_tabs" horizontal center layout>
<paper-tab id="paper_tab" active>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1" >ITEM TWO</paper-tab>
<paper-tab id="paper_tab2" >ITEM THREE</paper-tab>
</paper-tabs>
<core-pages selected="{{ selected }}" notap id="core_pages">
<section id="section" active>Page One</section>
<section id="section1">Page Two</section>
<section id="section2">Page Three</section>
</core-pages>
</template>
<script>
Polymer({
selected: 0
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment