Remove LOAD_SUB_FRAME load flag.
[chromium-blink-merge.git] / third_party / polymer / components / paper-tabs / paper-tab.html
blob725f69b83efd77b4f8018bfaba4c60e19505f52e
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.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
8 -->
10 <!--
11 `paper-tab` is styled to look like a tab. It should be used in conjunction with
12 `paper-tabs`.
14 Example:
16 <paper-tabs selected="0">
17 <paper-tab>TAB 1</paper-tab>
18 <paper-tab>TAB 2</paper-tab>
19 <paper-tab>TAB 3</paper-tab>
20 </paper-tabs>
22 Styling tab:
24 To change the ink color:
26 .pink paper-tab::shadow #ink {
27 color: #ff4081;
30 @group Paper Elements
31 @element paper-tab
32 @homepage github.io
33 -->
35 <link rel="import" href="../paper-ripple/paper-ripple.html">
37 <polymer-element name="paper-tab" attributes="noink" role="tab" inline flex center-center horizontal layout>
38 <template>
40 <link rel="stylesheet" href="paper-tab.css">
42 <div class="tab-content" flex auto center-center horizontal layout><content></content></div>
43 <paper-ripple id="ink" initialOpacity="0.95" opacityDecayVelocity="0.98"></paper-ripple>
45 </template>
46 <script>
48 Polymer('paper-tab', {
50 /**
51 * If true, ink ripple effect is disabled.
53 * @attribute noink
54 * @type boolean
55 * @default false
57 noink: false,
59 eventDelegates: {
60 down: 'downAction',
61 up: 'upAction'
64 downAction: function(e) {
65 if (this.noink || (this.parentElement && this.parentElement.noink)) {
66 return;
68 this.$.ink.downAction(e);
71 upAction: function() {
72 this.$.ink.upAction();
75 cancelRipple: function() {
76 this.$.ink.upAction();
79 });
81 </script>
82 </polymer-element>