OLD | NEW |
| (Empty) |
1 <!-- | |
2 @license | |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
7 Code distributed by Google as part of the polymer project is also | |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
9 --><html><head><link rel="import" href="../polymer/polymer.html"> | |
10 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> | |
11 <link rel="import" href="../paper-styles/paper-styles.html"> | |
12 | |
13 <!-- | |
14 `<paper-item>` is a non-interactive list item. By default, it is a horizontal fl
exbox. | |
15 | |
16 <paper-item>Item</paper-item> | |
17 | |
18 Use this element with `<paper-item-body>` to make Material Design styled two-lin
e and three-line | |
19 items. | |
20 | |
21 <paper-item> | |
22 <paper-item-body two-line> | |
23 <div>Show your status</div> | |
24 <div secondary>Your status is visible to everyone</div> | |
25 </paper-item-body> | |
26 <iron-icon icon="warning"></iron-icon> | |
27 </paper-item> | |
28 | |
29 ### Styling | |
30 | |
31 The following custom properties and mixins are available for styling: | |
32 | |
33 Custom property | Description | Default | |
34 ----------------|-------------|---------- | |
35 `--paper-item-min-height` | Minimum height of the item | `48px` | |
36 `--paper-item` | Mixin applied to the item | `{}` | |
37 | |
38 ### Accessibility | |
39 | |
40 This element has `role="listitem"` by default. Depending on usage, it may be mor
e appropriate to set | |
41 `role="menuitem"`, `role="menuitemcheckbox"` or `role="menuitemradio"`. | |
42 | |
43 <paper-item role="menuitemcheckbox"> | |
44 <paper-item-body> | |
45 Show your status | |
46 </paper-item-body> | |
47 <paper-checkbox></paper-checkbox> | |
48 </paper-item> | |
49 | |
50 @group Paper Elements | |
51 @element paper-item | |
52 @demo demo/index.html | |
53 --> | |
54 | |
55 </head><body><dom-module id="paper-item"> | |
56 | |
57 <link rel="import" type="css" href="paper-item-shared.css"> | |
58 | |
59 <style> | |
60 | |
61 :host { | |
62 @apply(--layout-horizontal); | |
63 @apply(--layout-center); | |
64 @apply(--paper-font-subhead); | |
65 | |
66 @apply(--paper-item); | |
67 } | |
68 | |
69 </style> | |
70 | |
71 <template> | |
72 <content></content> | |
73 </template> | |
74 | |
75 </dom-module> | |
76 | |
77 <script src="paper-item-extracted.js"></script></body></html> | |
OLD | NEW |