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

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

Issue 1468623004: Update Polymer from 1.2.1 -> 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@travis-yml
Patch Set: local-state.html Created 5 years 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
2 ========== 2 <!---
3 3
4 This README is automatically generated from the comments in these files:
5 iron-pages.html
6
7 Edit those files, and our readme bot will duplicate them over here!
8 Edit this file, and the bot will squash your changes :)
9
10 -->
11
12 [![Build Status](https://travis-ci.org/PolymerElements/iron-pages.svg?branch=mas ter)](https://travis-ci.org/PolymerElements/iron-pages)
13
14 _[Demo and API Docs](https://elements.polymer-project.org/elements/iron-pages)_
15
16
17 ##&lt;iron-pages&gt;
18
19
4 `iron-pages` is used to select one of its children to show. One use is to cycle through a list of 20 `iron-pages` is used to select one of its children to show. One use is to cycle through a list of
5 children "pages". 21 children "pages".
6 22
7 Example: 23 Example:
8 24
9 ```html 25 <iron-pages selected="0">
10 <iron-pages selected="0"> 26 <div>One</div>
11 <div>One</div> 27 <div>Two</div>
12 <div>Two</div> 28 <div>Three</div>
13 <div>Three</div> 29 </iron-pages>
14 </iron-pages>
15 30
16 <script> 31 <script>
17 document.addEventListener('click', function(e) { 32 document.addEventListener('click', function(e) {
18 var pages = document.querySelector('iron-pages'); 33 var pages = document.querySelector('iron-pages');
19 pages.selectNext(); 34 pages.selectNext();
20 }); 35 });
21 </script> 36 </script>
22 ``` 37
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698