Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: third_party/polymer/v0_8/components-chromium/iron-pages/README.md

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v0_8/components-chromium/iron-pages/README.md
diff --git a/third_party/polymer/v0_8/components-chromium/iron-pages/README.md b/third_party/polymer/v0_8/components-chromium/iron-pages/README.md
index 24c1c6cb0de7507334e7e464f4d26ad9b51265f2..716ccc396fbeeedc6309dfb929becbc0b2a181a0 100644
--- a/third_party/polymer/v0_8/components-chromium/iron-pages/README.md
+++ b/third_party/polymer/v0_8/components-chromium/iron-pages/README.md
@@ -1,4 +1,22 @@
iron-pages
==========
-See the [component page](http://polymer-project.org/docs/elements/iron-elements.html#iron-pages) for more information.
+`iron-pages` is used to select one of its children to show. One use is to cycle through a list of
+children "pages".
+
+Example:
+
+```html
+<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>
+```

Powered by Google App Engine
This is Rietveld 408576698