Blame view

bower_components/iron-pages/README.md 410 Bytes
c5169e0e   Renato De Donato   a new hope
1
2
  iron-pages
  ==========
73bcce88   luigser   COMPONENTS
3
4
5
6
7
8
  
  `iron-pages` is used to select one of its children to show. One use is to cycle through a list of
  children "pages".
  
  Example:
  
c5169e0e   Renato De Donato   a new hope
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  ```html
  <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>
  ```