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.github.io/LICENSE.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/CONTRIBUTORS.txt
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/PATENTS.txt
9 --><html><head><link rel=
"import" href=
"../polymer/polymer.html">
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.
15 <button on-click="{{toggle}}">toggle collapse</button>
17 <iron-collapse id="collapse">
18 <div>Content goes here...</div>
24 this.$.collapse.toggle();
27 `iron-collapse` adjusts the height/width of the collapsible element to show/hide
28 the content. So avoid putting padding/margin/border on the collapsible directly,
29 and instead put a div inside and style that.
34 border: 1px solid #dedede;
39 <div class="collapse-content">
40 <div>Content goes here...</div>
47 @element iron-collapse
50 </head><body><dom-module id=
"iron-collapse">
56 transition-duration:
300ms;
59 :host(.iron-collapse-closed) {
63 :host(:not(.iron-collapse-opened)) {
77 <script src=
"iron-collapse-extracted.js"></script></body></html>