2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
11 `core-pages` is used to select one of its children to show. One use is to cycle through a list of children "pages".
15 <core-pages selected="0">
22 document.addEventListener('click', function(e) {
23 var pages = document.querySelector('core-pages');
24 pages.selected = (pages.selected + 1) % pages.children.length;
28 @group Polymer Core Elements
30 @extends core-selector
33 <link rel="import" href="../polymer/polymer.html">
34 <link rel="import" href="../core-selector/core-selector.html">
36 <polymer-element name="core-pages" extends="core-selector" selected="0" notap noscript>
39 <link rel="stylesheet" href="core-pages.css">