Blame view

bower_components/iron-pages/README.md 891 Bytes
a1a3bc73   Luigi Serra   graphs updates
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  
  <!---
  
  This README is automatically generated from the comments in these files:
  iron-pages.html
  
  Edit those files, and our readme bot will duplicate them over here!
  Edit this file, and the bot will squash your changes :)
  
  -->
  
  [![Build Status](https://travis-ci.org/PolymerElements/iron-pages.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-pages)
  
  _[Demo and API Docs](https://elements.polymer-project.org/elements/iron-pages)_
  
  
  ##&lt;iron-pages&gt;
  
73bcce88   luigser   COMPONENTS
19
20
21
22
23
24
  
  `iron-pages` is used to select one of its children to show. One use is to cycle through a list of
  children "pages".
  
  Example:
  
a1a3bc73   Luigi Serra   graphs updates
25
26
27
28
29
30
31
32
33
34
35
36
      <iron-pages selected="0">
        <div>One</div>
        <div>Two</div>
        <div>Three</div>
      </iron-pages>
  
      <script>
        document.addEventListener('click', function(e) {
          var pages = document.querySelector('iron-pages');
          pages.selectNext();
        });
      </script>