OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
6 Code distributed by Google as part of the polymer project is also | |
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
8 --><!-- | |
9 `core-item` is a simple line-item object: a label and/or an icon that can also | |
10 act as a link. | |
11 | |
12 Example: | |
13 | |
14 <core-item icon="settings" label="Settings"></core-item> | |
15 | |
16 To use as a link, put <a> element in the item. | |
17 | |
18 Example: | |
19 | |
20 <core-item icon="settings" label="Settings"> | |
21 <a href="#settings" target="_self"></a> | |
22 </core-item> | |
23 | |
24 @group Polymer Core Elements | |
25 @element core-item | |
26 @homepage github.io | |
27 --><html><head><link rel="import" href="../core-icon/core-icon.html"> | |
28 | |
29 </head><body><polymer-element name="core-item" attributes="label icon src" horiz
ontal="" center="" layout="" assetpath=""> | |
30 <template> | |
31 <link rel="stylesheet" href="core-item.css"> | |
32 <template if="{{icon || src}}"> | |
33 <core-icon src="{{src}}" id="icon" icon="{{icon}}" hidden?="{{!src &&
; !icon}}"></core-icon> | |
34 </template> | |
35 <div id="label">{{label}}</div> | |
36 <content></content> | |
37 </template> | |
38 | |
39 </polymer-element> | |
40 <script charset="utf-8" src="core-item-extracted.js"></script></body></html> | |
OLD | NEW |