• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2@license
3Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7Code distributed by Google as part of the polymer project is also
8subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9-->
10
11<link rel="import" href="../../polymer/polymer.html">
12<link rel="import" href="../iron-control-state.html">
13<link rel="import" href="../iron-button-state.html">
14
15<script>
16
17  Polymer({
18
19    is: 'test-control',
20
21    behaviors: [
22      Polymer.IronControlState
23    ]
24
25  });
26
27</script>
28
29<script>
30
31  Polymer({
32
33    is: 'test-button',
34
35    behaviors: [
36      Polymer.IronControlState,
37      Polymer.IronButtonState
38    ],
39
40    _buttonStateChanged: function() {
41
42    }
43
44  });
45
46</script>
47
48<dom-module id="nested-focusable">
49
50  <template>
51    <input id="input">
52  </template>
53
54</dom-module>
55
56<script>
57
58  Polymer({
59
60    is: 'nested-focusable',
61
62    behaviors: [
63      Polymer.IronControlState
64    ]
65
66  });
67
68</script>
69
70<dom-module id="test-light-dom">
71
72  <template>
73    <content select="*"></content>
74  </template>
75
76</dom-module>
77
78<script>
79
80  Polymer({
81
82    is: 'test-light-dom',
83
84    behaviors: [
85      Polymer.IronControlState,
86      Polymer.IronButtonState
87    ]
88
89  });
90
91</script>
92