JSPM

  • Created
  • Published
  • Downloads 12568
  • Score
    100M100P100Q138740F
  • License BSD-3-Clause

Organizes a set of pages and shows one at a time

Package Exports

  • @polymer/iron-pages/iron-pages
  • @polymer/iron-pages/iron-pages.js

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 Published on webcomponents.org

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>

Notable breaking changes between 1.x and 2.x (hybrid):

IronSelectableBehavior and IronMultiSelectableBehavior, which are used by iron-pages, introduce multiple breaking changes. Please see the README for those behaviors for more detail.