• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.github/23-Nov-2023-3414

demo/23-Nov-2023-7560

test/23-Nov-2023-227152

.bower.jsonD23-Nov-20231.4 KiB4444

.gitignoreD23-Nov-202317 21

.travis.ymlD23-Nov-2023784 2524

CONTRIBUTING.mdD23-Nov-20233.4 KiB7839

README.mdD23-Nov-2023990 4319

bower.jsonD23-Nov-20231 KiB3534

hero.svgD23-Nov-2023943 2321

index.htmlD23-Nov-2023905 2612

iron-pages.htmlD23-Nov-20232.1 KiB8941

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##&lt;iron-pages&gt;
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