Skip to content

Instantly share code, notes, and snippets.

@aissatech
Created September 4, 2014 12:35
Show Gist options
  • Select an option

  • Save aissatech/4e4fb50e03a4a3caf7c6 to your computer and use it in GitHub Desktop.

Select an option

Save aissatech/4e4fb50e03a4a3caf7c6 to your computer and use it in GitHub Desktop.
Polymer menu
<!doctype html>
<html>
<head>
<title>JSWebAppPolymer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="../platform/platform.js"></script>
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../font-roboto/roboto.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="stylesheet" href="styles.css">
</head>
<body unresolved>
<core-toolbar>
<paper-icon-button icon="menu" onclick="document.querySelector('#menuItems').show()">
<core-menu id="menuItems">
<paper-item icon="open" label="Open">
<a href="http://www.polymer-project.org" target="_self"></a>
</paper-item>
<paper-item icon="refresh" label="Refresh"></paper-item>
<paper-item label="save"></paper-item>
</core-menu>
</paper-icon-button>
<span flex>JSWebAppPolymer toolbar</span>
<paper-fab icon="add" onclick="document.querySelector('#accordion1').show()"></paper-fab>
</core-toolbar>
<!--<section>
<p id="accordion1">Hello world!</p>
<p id="accordion1">World, hello!</p>
<p id="accordion1">That's it!</p>
<section>-->
<section>
<p>A simple Polymer
<a href="http://www.polymer-project.org/docs/elements/paper-elements.html">
paper elements</a> example that demonstrates using <code>&lt;core-toolbar&gt;,
&lt;paper-button&gt;, &lt;paper-checkbox&gt;, &lt;paper-icon-button&gt;,
&lt;paper-fab&gt;, &lt;paper-tabs&gt;</code>, and <code>&lt;paper-toast&gt;</code>.
</p>
<paper-checkbox label="Check me!"></paper-checkbox>
</section>
<section>
<paper-tabs selected="0">
<paper-tab>Tab one</paper-tab>
<paper-tab>Tab two</paper-tab>
<paper-tab>Tab three</paper-tab>
</paper-tabs>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</section>
<section>
<paper-button raisedButton right label="Show Toast"
onclick="document.querySelector('#toast1').show()">
</paper-button>
<paper-toast id="toast1" text="A sample toast here."></paper-toast>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment