Skip to content

Instantly share code, notes, and snippets.

@tmaeda
Created July 2, 2014 08:24
Show Gist options
  • Save tmaeda/59acc509c9bf64912263 to your computer and use it in GitHub Desktop.
Save tmaeda/59acc509c9bf64912263 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#ace_element {
width: 400px;
height: 300px;
left: 480px;
top: 200px;
position: absolute;
}
#chart_js {
width: 300px;
height: 200px;
left: 100px;
top: 110px;
position: absolute;
}
#core_icon_button {
left: 80px;
top: 350px;
position: absolute;
}
#core_menu {
font-size: 16px;
left: 20px;
top: 0px;
position: absolute;
}
</style>
<ace-element value="<polymer-element name='my-element'>
<template></template>
<script>
Polymer('my-element', {});
</script>
</polymer-element>" id="ace_element"><polymer-element name='my-element'>
<template></template>
<script>
Polymer('my-element', {});
</script>
</polymer-element></ace-element>
<chart-js kind="Line" id="chart_js"></chart-js>
<core-icon-button icon="menu" id="core_icon_button" theme="core-light-theme"></core-icon-button>
<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>
</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