OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
10 | 10 |
11 <!-- | 11 <!-- |
12 `iron-collapse` creates a collapsible block of content. By default, the content | 12 `iron-collapse` creates a collapsible block of content. By default, the content |
13 will be collapsed. Use `opened` or `toggle()` to show/hide the content. | 13 will be collapsed. Use `opened` or `toggle()` to show/hide the content. |
14 | 14 |
15 <button on-click="{{toggle}}">toggle collapse</button> | 15 <button on-click="toggle">toggle collapse</button> |
16 | 16 |
17 <iron-collapse id="collapse"> | 17 <iron-collapse id="collapse"> |
18 <div>Content goes here...</div> | 18 <div>Content goes here...</div> |
19 </iron-collapse> | 19 </iron-collapse> |
20 | 20 |
21 ... | 21 ... |
22 | 22 |
23 toggle: function() { | 23 toggle: function() { |
24 this.$.collapse.toggle(); | 24 this.$.collapse.toggle(); |
25 } | 25 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 <template> | 69 <template> |
70 | 70 |
71 <content></content> | 71 <content></content> |
72 | 72 |
73 </template> | 73 </template> |
74 | 74 |
75 </dom-module> | 75 </dom-module> |
76 | 76 |
77 <script src="iron-collapse-extracted.js"></script></body></html> | 77 <script src="iron-collapse-extracted.js"></script></body></html> |
OLD | NEW |