JSPM

  • Created
  • Published
  • Downloads 12568
  • Score
    100M100P100Q138658F
  • License SEE LICENSE IN http://polymer.github.io/LICENSE.txt

Organizes a set of pages and shows one at a time

Package Exports

  • @polymer/iron-pages

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@polymer/iron-pages) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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>