repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Chromecast: registers old client_id metrics pref.
[chromium-blink-merge.git]
/
third_party
/
polymer
/
v0_8
/
components
/
iron-pages
/
README.md
blob
716ccc396fbeeedc6309dfb929becbc0b2a181a0
1
iron-pages
2
==========
3
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".
6
7
Example:
8
9
```html
10
<iron-pages selected="0">
11
<div>One</div>
12
<div>Two</div>
13
<div>Three</div>
14
</iron-pages>
15
16
<script>
17
document.addEventListener('click', function(e) {
18
var pages = document.querySelector('iron-pages');
19
pages.selectNext();
20
});
21
</script>
22
```