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

Unified Diff: third_party/polymer/v0_8/components/paper-tabs/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/paper-tabs/README.md
diff --git a/third_party/polymer/v0_8/components/paper-tabs/README.md b/third_party/polymer/v0_8/components/paper-tabs/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..d4744e27ecee27dc506994e58269dff131568d73
--- /dev/null
+++ b/third_party/polymer/v0_8/components/paper-tabs/README.md
@@ -0,0 +1,56 @@
+paper-tabs
+============
+
+`paper-tabs` makes it easy to explore and switch between different views or functional aspects of
+an app, or to browse categorized data sets.
+
+Use `selected` property to get or set the selected tab.
+
+Example:
+
+```html
+<paper-tabs selected="0">
+ <paper-tab>TAB 1</paper-tab>
+ <paper-tab>TAB 2</paper-tab>
+ <paper-tab>TAB 3</paper-tab>
+</paper-tabs>
+```
+
+See <a href="#paper-tab">paper-tab</a> for more information about
+`paper-tab`.
+
+A common usage for `paper-tabs` is to use it along with `iron-pages` to switch
+between different views.
+
+```html
+<paper-tabs selected="{{selected}}">
+ <paper-tab>Tab 1</paper-tab>
+ <paper-tab>Tab 2</paper-tab>
+ <paper-tab>Tab 3</paper-tab>
+</paper-tabs>
+
+<iron-pages selected="{{selected}}">
+ <div>Page 1</div>
+ <div>Page 2</div>
+ <div>Page 3</div>
+</iron-pages>
+```
+
+To use links in tabs, add `link` attribute to `paper-tab` and put an `<a>`
+element in `paper-tab`.
+
+Example:
+
+```html
+<paper-tabs selected="0">
+ <paper-tab link>
+ <a href="#link1" class="horizontal center-center layout">TAB ONE</a>
+ </paper-tab>
+ <paper-tab link>
+ <a href="#link2" class="horizontal center-center layout">TAB TWO</a>
+ </paper-tab>
+ <paper-tab link>
+ <a href="#link3" class="horizontal center-center layout">TAB THREE</a>
+ </paper-tab>
+</paper-tabs>
+```
« no previous file with comments | « third_party/polymer/v0_8/components/paper-tabs/.gitignore ('k') | third_party/polymer/v0_8/components/paper-tabs/bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698