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 |
| 10 <!-- |
| 11 `paper-tabs` is a `core-selector` styled to look like tabs. Tabs make it easy to
|
| 12 explore and switch between different views or functional aspects of an app, or |
| 13 to browse categorized data sets. |
| 14 |
| 15 Use `selected` property to get or set the selected tab. |
| 16 |
| 17 Example: |
| 18 |
| 19 <paper-tabs selected="0"> |
| 20 <paper-tab>TAB 1</paper-tab> |
| 21 <paper-tab>TAB 2</paper-tab> |
| 22 <paper-tab>TAB 3</paper-tab> |
| 23 </paper-tabs> |
| 24 |
| 25 See <a href="#paper-tab">paper-tab</a> for more information about |
| 26 `paper-tab`. |
| 27 |
| 28 Styling tabs: |
| 29 |
| 30 To change the sliding bar color: |
| 31 |
| 32 paper-tabs.pink::shadow #selectionBar { |
| 33 background-color: #ff4081; |
| 34 } |
| 35 |
| 36 @group Paper Elements |
| 37 @element paper-tabs |
| 38 @extends core-selector |
| 39 @homepage github.io |
| 40 --> |
| 41 |
| 42 <link rel="import" href="../core-selector/core-selector.html"> |
| 43 <link rel="import" href="paper-tab.html"> |
| 44 |
| 45 <polymer-element name="paper-tabs" extends="core-selector" attributes="noink nob
ar" role="tablist" assetpath=""> |
| 46 <template> |
| 47 |
| 48 <link rel="stylesheet" href="paper-tabs.css"> |
| 49 |
| 50 <div id="tabsContainer" horizontal="" layout=""> |
| 51 |
| 52 <shadow></shadow> |
| 53 <div id="selectionBar" hidden?="{{nobar}}" on-transitionend="{{barTransition
End}}"></div> |
| 54 |
| 55 </div> |
| 56 |
| 57 </template> |
| 58 |
| 59 </polymer-element> |
| 60 <script src="paper-tabs-extracted.js"></script> |
OLD | NEW |