| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 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.g
ithub.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/CONTRI
BUTORS.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/PATEN
TS.txt | |
| 8 --><!-- | |
| 9 `core-pages` is used to select one of its children to show. One use is to cycle
through a list of children "pages". | |
| 10 | |
| 11 Example: | |
| 12 | |
| 13 <core-pages selected="0"> | |
| 14 <div>One</div> | |
| 15 <div>Two</div> | |
| 16 <div>Three</div> | |
| 17 </core-pages> | |
| 18 | |
| 19 <script> | |
| 20 document.addEventListener('click', function(e) { | |
| 21 var pages = document.querySelector('core-pages'); | |
| 22 pages.selected = (pages.selected + 1) % pages.children.length; | |
| 23 }); | |
| 24 </script> | |
| 25 | |
| 26 @group Polymer Core Elements | |
| 27 @class core-pages | |
| 28 @extends core-selector | |
| 29 --><html><head><link rel="import" href="../polymer/polymer.html"> | |
| 30 <link rel="import" href="../core-selector/core-selector.html"> | |
| 31 | |
| 32 </head><body><polymer-element name="core-pages" extends="core-selector" selected
="0" notap="" assetpath=""> | |
| 33 <template> | |
| 34 | |
| 35 <link rel="stylesheet" href="core-pages.css"> | |
| 36 | |
| 37 <shadow></shadow> | |
| 38 | |
| 39 </template> | |
| 40 </polymer-element> | |
| 41 <script charset="utf-8" src="core-pages-extracted.js"></script></body></html> | |
| OLD | NEW |