Skip to content

Instantly share code, notes, and snippets.

@olayinkasf
Last active August 29, 2015 14:22
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 olayinkasf/0836f7b38d5bca20d1b2 to your computer and use it in GitHub Desktop.
Save olayinkasf/0836f7b38d5bca20d1b2 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="https://polymer-designer.appspot.com/components/core-scaffold/core-scaffold.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-header-panel/core-header-panel.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-menu/core-menu.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-item/core-item.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-icon-button/core-icon-button.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-toolbar/core-toolbar.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-menu/core-submenu.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-icons/core-icons.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-icon/core-icon.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-icons/editor-icons.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-icons/communication-icons.html">
<link rel="import" href="https://polymer-designer.appspot.com/components/core-icons/social-icons.html">
<polymer-element name="help-page" attributes="help">
<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_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="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
<template repeat="{{topic in help}}">
<core-item id="core_item" icon="{{topic.icon}}" label="{{topic.label}}" horizontal center layout active></core-item>
</template>
</core-menu>
</core-header-panel>
<div id="div" tool>Title</div>
</core-scaffold>
</template>
<script>
Polymer('help-page', {
ready: function() {
this.help = [
{
"id": "create-collection",
"icon": "editor:mode-edit",
"label": "Create Collection",
"sections": []
},
{
"id": "set-ringtone",
"icon": "communication:ring-volume",
"label": "Set Ringtone",
"sections": []
},
{
"id": "set-notification-sound",
"icon": "social:notifications-on",
"label": "Set Notification Sound",
"sections": []
}, {
"id": "manage-collection",
"icon": "editor:mode-edit",
"label": "Manage Collection",
"sections": []
},
{
"id": "import-export-collection",
"icon": "communication:import-export",
"label": "Import/Export Collections",
"sections": []
},
];
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment