tree: 70937b957c80f142747f17cbe05dcda85db18360 [path history] [tgz]
  1. .bower.json
  2. .gitignore
  3. bower.json
  4. compiled_resources2.gyp
  5. CONTRIBUTING.md
  6. hero.svg
  7. index.html
  8. iron-pages-extracted.js
  9. iron-pages.html
  10. README.md
third_party/polymer/v1_0/components-chromium/iron-pages/README.md

Build Status

Demo and API Docs

##<iron-pages>

iron-pages is used to select one of its children to show. One use is to cycle through a list of children “pages”.

Example:

<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>