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

Side by Side Diff: third_party/polymer/v1_0/components/iron-pages/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-pages 1 iron-pages
2 ========== 2 ==========
3 3
4 `iron-pages` is used to select one of its children to show. One use is to cycle through a list of 4 `iron-pages` is used to select one of its children to show. One use is to cycle through a list of
5 children "pages". 5 children "pages".
6 6
7 Example: 7 Example:
8 8
9 ```html 9 ```html
10 <iron-pages selected="0"> 10 <iron-pages selected="0">
11 <div>One</div> 11 <div>One</div>
12 <div>Two</div> 12 <div>Two</div>
13 <div>Three</div> 13 <div>Three</div>
14 </iron-pages> 14 </iron-pages>
15 15
16 <script> 16 <script>
17 document.addEventListener('click', function(e) { 17 document.addEventListener('click', function(e) {
18 var pages = document.querySelector('iron-pages'); 18 var pages = document.querySelector('iron-pages');
19 pages.selectNext(); 19 pages.selectNext();
20 }); 20 });
21 </script> 21 </script>
22 ``` 22 ```
OLDNEW
« no previous file with comments | « third_party/polymer/v1_0/components/iron-pages/.gitignore ('k') | third_party/polymer/v1_0/components/iron-pages/bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698