Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: third_party/polymer/v1_0/components/iron-iconset/README.md

Issue 1155683008: Rename polymer and cr_elements v0_8 to v1_0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1
Patch Set: fix a merge mistake Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 ```
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698