Index: third_party/polymer/components-chromium/paper-item/paper-item.html |
diff --git a/third_party/polymer/components-chromium/paper-item/paper-item.html b/third_party/polymer/components-chromium/paper-item/paper-item.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2e993b02520e1654c6cdbb0b82d4f38d0510724e |
--- /dev/null |
+++ b/third_party/polymer/components-chromium/paper-item/paper-item.html |
@@ -0,0 +1,54 @@ |
+<!-- |
+Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt |
+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt |
+Code distributed by Google as part of the polymer project is also |
+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt |
+--> |
+ |
+<!-- |
+@group Paper Elements |
+ |
+`paper-item` is a list-item object for use in menus. It may contain and icon and/or |
+a text label. |
+ |
+Example: |
+ |
+ <core-menu> |
+ <paper-item icon="refresh" label="Refresh"></paper-item> |
+ <paper-item label="Help"></paper-item> |
+ <paper-item label="Sign Out"></paper-item> |
+ </core-menu> |
+ |
+To use as a link, put an `<a>` element in the item. |
+ |
+Example: |
+ |
+ <paper-item icon="home" label="Home"> |
+ <a href="http://www.polymer-project.org"></a> |
+ </paper-item> |
+ |
+@class paper-item |
+--> |
+ |
+<link href="../polymer/polymer.html" rel="import"> |
+<link href="../core-icon/core-icon.html" rel="import"> |
+<link href="../paper-ripple/paper-ripple.html" rel="import"> |
+ |
+<link href="paper-item.css" rel="stylesheet" shim-shadowdom=""> |
+ |
+<polymer-element name="paper-item" attributes="label iconSrc icon" center="" horizontal="" layout="" assetpath=""> |
+ |
+ <template> |
+ |
+ <paper-ripple id="ripple"></paper-ripple> |
+ |
+ <core-icon id="icon" hidden?="{{!iconSrc && !icon}}" src="{{iconSrc}}" icon="{{icon}}"></core-icon> |
+ <div id="label">{{label}}</div> |
+ <content></content> |
+ </template> |
+ |
+ |
+</polymer-element> |
+<script src="paper-item-extracted.js"></script> |