Skip to content

Instantly share code, notes, and snippets.

@Gautier
Created June 25, 2014 23:44
Show Gist options
  • Save Gautier/f641da9bfc975b955e09 to your computer and use it in GitHub Desktop.
Save Gautier/f641da9bfc975b955e09 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_menu {
font-size: 16px;
left: 90px;
top: 60px;
position: absolute;
}
#core_pages {
width: 400px;
height: 400px;
border: 1px solid silver;
left: 580px;
top: 40px;
position: absolute;
}
#paper_radio_group {
left: 250px;
top: 400px;
position: absolute;
}
</style>
<core-menu selected="0" selectedindex="0" id="core_menu">
<core-submenu active label="Topics" icon="settings" id="core_submenu">
<core-item label="Topic 1" id="core_item" horizontal center layout></core-item>
<core-item label="Topic 2" id="core_item1" horizontal center layout></core-item>
</core-submenu>
<core-submenu label="Favorites" icon="settings" id="core_submenu1">
<core-item label="Favorite 1" id="core_item2" horizontal center layout></core-item>
<core-item label="Favorite 2" id="core_item3" horizontal center layout></core-item>
<core-item label="Favorite 3" id="core_item4" horizontal center layout></core-item>
</core-submenu>
</core-menu>
<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-radio-group selected="Small" valueattr="label" selectedindex="0" id="paper_radio_group">
<paper-radio-button checked label="Small" id="paper_radio_button"></paper-radio-button>
<paper-radio-button label="Medium" id="paper_radio_button1"></paper-radio-button>
<paper-radio-button label="Large" id="paper_radio_button2"></paper-radio-button>
</paper-radio-group>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment