Skip to content

Instantly share code, notes, and snippets.

@saarmstrong
Created July 17, 2014 23:30
Show Gist options
  • Save saarmstrong/3f40e3b13b641fbad36a to your computer and use it in GitHub Desktop.
Save saarmstrong/3f40e3b13b641fbad36a to your computer and use it in GitHub Desktop.
designer
<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="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_toolbar {
right: 0px;
left: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
top: 0px;
position: absolute;
width: 200px;
background-color: rgb(79, 125, 201);
}
#core_submenu {
left: 20px;
top: 60px;
position: absolute;
width: 250px;
}
</style>
<core-toolbar id="core_toolbar">
<core-icon-button active="{{ $.core_submenu.click }}" icon="settings" id="core_icon_button" class="selected"></core-icon-button>
<div id="div" flex>AL CMS</div>
</core-toolbar>
<core-submenu active="{{ click }}" label="Elements" icon="refresh" valueattr="name" id="core_submenu">
<core-item label="Text Element" size="24" id="core_item" horizontal center layout></core-item>
<core-item label="Image Element" size="24" id="core_item1" horizontal center layout></core-item>
</core-submenu>
</template>
<script>
Polymer('my-element', {
search: '',
click: true
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment