OLD | NEW |
1 iron-iconset | 1 iron-iconset |
2 ============ | 2 ============ |
3 | 3 |
4 The `iron-iconset` element allows users to define their own icon sets. | 4 The `iron-iconset` element allows users to define their own icon sets. |
5 The `src` property specifies the url of the icon image. Multiple icons may | 5 The `src` property specifies the url of the icon image. Multiple icons may |
6 be included in this image and they may be organized into rows. | 6 be included in this image and they may be organized into rows. |
7 The `icons` property is a space separated list of names corresponding to the | 7 The `icons` property is a space separated list of names corresponding to the |
8 icons. The names must be ordered as the icons are ordered in the icon image. | 8 icons. The names must be ordered as the icons are ordered in the icon image. |
9 Icons are expected to be square and are the size specified by the `size` | 9 Icons are expected to be square and are the size specified by the `size` |
10 property. The `width` property corresponds to the width of the icon image | 10 property. The `width` property corresponds to the width of the icon image |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 icons="location place starta stopb bus car train walk"> | 42 icons="location place starta stopb bus car train walk"> |
43 <property theme="special" offsetX="256" offsetY="24"></property> | 43 <property theme="special" offsetX="256" offsetY="24"></property> |
44 </iron-iconset> | 44 </iron-iconset> |
45 ``` | 45 ``` |
46 | 46 |
47 Then a themed icon can be applied like this: | 47 Then a themed icon can be applied like this: |
48 | 48 |
49 ```javascript | 49 ```javascript |
50 iconset.applyIcon(iconNode, 'car', 'special'); | 50 iconset.applyIcon(iconNode, 'car', 'special'); |
51 ``` | 51 ``` |
OLD | NEW |