Skip to content

Instantly share code, notes, and snippets.

@rockymontana
Created April 4, 2015 17:48
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 rockymontana/eba4188f931f336d1ef9 to your computer and use it in GitHub Desktop.
Save rockymontana/eba4188f931f336d1ef9 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="element-choser">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#section {
width: 940px;
height: 240px;
border: 5px solid rgb(204, 204, 204);
left: 200px;
top: 50px;
position: absolute;
}
#paper_tabs {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#core_ajax {
left: 680px;
top: 300px;
position: absolute;
}
#section2 {
width: 420px;
height: 630px;
border: 5px solid rgb(204, 204, 204);
left: 180px;
top: 320px;
position: absolute;
}
#paper_tabs1 {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
</style>
<section id="section" layout vertical>
<paper-tabs noink nobar selected="1" selectedindex="1" id="paper_tabs" horizontal center layout>
<core-ajax url="http://www.json-generator.com/api/json/get/cnxUuKrkSW?indent=2" handleas="json" auto response="{{ $.paper_tabs.categories }}" loading id="elementCategories" hidden></core-ajax>
<paper-tab id="template" flex center-center horizontal layout repeat inline active>{{ category }}</paper-tab>
</paper-tabs>
<section id="section1" flex relative>
</section>
</section>
</template>
<script>
Polymer({
categories: null
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment