Skip to content

Instantly share code, notes, and snippets.

@DAddYE
Created July 27, 2014 09:02
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 DAddYE/d0b12a7ec407a8d7f82b to your computer and use it in GitHub Desktop.
Save DAddYE/d0b12a7ec407a8d7f82b to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../chart-js/chart-js.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_header_panel {
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_menu1 {
font-size: 16px;
}
#core_field {
left: 1420px;
top: 560px;
}
#core_icon {
height: 24px;
width: 24px;
left: 1460px;
top: 670px;
}
#core_menu_button {
left: 1430px;
top: 630px;
}
#core_pages {
width: 400px;
height: 400px;
border: 1px solid silver;
left: 1470px;
top: 740px;
}
#chart_js {
width: 300px;
height: 200px;
}
#core_scaffold1 {
right: 0px;
bottom: 0px;
}
#core_header_panel1 {
background-color: rgb(255, 255, 255);
}
#core_toolbar1 {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_menu {
font-size: 16px;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar"></core-toolbar>
<core-menu selected="1" selectedindex="1" id="core_menu1">
<core-submenu label="Topics" icon="settings" valueattr="name" id="core_submenu1">
<core-item label="Topic 1" size="24" id="core_item4" horizontal center layout></core-item>
<core-item label="Topic 2" size="24" id="core_item5" horizontal center layout></core-item>
</core-submenu>
<core-submenu active label="Favorites" icon="settings" valueattr="name" id="core_submenu2">
<core-item label="Favorite 1" size="24" id="core_item6" horizontal center layout></core-item>
<core-item label="Favorite 2" size="24" id="core_item7" horizontal center layout></core-item>
<core-item label="Favorite 3" size="24" id="core_item8" horizontal center layout></core-item>
</core-submenu>
</core-menu>
</core-header-panel>
<div id="div" tool>Title</div>
<chart-js kind="Line" datastring="1,2,3,4" id="chart_js"></chart-js>
</core-scaffold>
</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