Service workers: Allow HTTPS pages arrived at via HTTP redirect to use SW
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / iron-pages / README.md
blob716ccc396fbeeedc6309dfb929becbc0b2a181a0
1 iron-pages
2 ==========
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".
7 Example:
9 ```html
10 <iron-pages selected="0">
11   <div>One</div>
12   <div>Two</div>
13   <div>Three</div>
14 </iron-pages>
16 <script>
17   document.addEventListener('click', function(e) {
18     var pages = document.querySelector('iron-pages');
19     pages.selectNext();
20   });
21 </script>
22 ```