Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/ | 23-Nov-2023 | - | 34 | 14 | ||
demo/ | 23-Nov-2023 | - | 75 | 60 | ||
test/ | 23-Nov-2023 | - | 227 | 152 | ||
.bower.json | D | 23-Nov-2023 | 1.4 KiB | 44 | 44 | |
.gitignore | D | 23-Nov-2023 | 17 | 2 | 1 | |
.travis.yml | D | 23-Nov-2023 | 784 | 25 | 24 | |
CONTRIBUTING.md | D | 23-Nov-2023 | 3.4 KiB | 78 | 39 | |
README.md | D | 23-Nov-2023 | 990 | 43 | 19 | |
bower.json | D | 23-Nov-2023 | 1 KiB | 35 | 34 | |
hero.svg | D | 23-Nov-2023 | 943 | 23 | 21 | |
index.html | D | 23-Nov-2023 | 905 | 26 | 12 | |
iron-pages.html | D | 23-Nov-2023 | 2.1 KiB | 89 | 41 |
README.md
1 2<!--- 3 4This README is automatically generated from the comments in these files: 5iron-pages.html 6 7Edit those files, and our readme bot will duplicate them over here! 8Edit this file, and the bot will squash your changes :) 9 10The bot does some handling of markdown. Please file a bug if it does the wrong 11thing! https://github.com/PolymerLabs/tedium/issues 12 13--> 14 15[![Build status](https://travis-ci.org/PolymerElements/iron-pages.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-pages) 16 17_[Demo and API docs](https://elements.polymer-project.org/elements/iron-pages)_ 18 19 20##<iron-pages> 21 22`iron-pages` is used to select one of its children to show. One use is to cycle through a list of 23children "pages". 24 25Example: 26 27```html 28<iron-pages selected="0"> 29 <div>One</div> 30 <div>Two</div> 31 <div>Three</div> 32</iron-pages> 33 34<script> 35 document.addEventListener('click', function(e) { 36 var pages = document.querySelector('iron-pages'); 37 pages.selectNext(); 38 }); 39</script> 40``` 41 42 43