This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated dependencies and readme to 0.9.0
- Loading branch information
Taylor Savage
committed
May 15, 2015
1 parent
2c11f03
commit d0c5730
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
# iron-collapse | ||
|
||
`iron-collapse` creates a collapsible block of content. By default, the content | ||
will be collapsed. Use `opened` or `toggle()` to show/hide the content. | ||
|
||
<button on-click="{{toggle}}">toggle collapse</button> | ||
|
||
<iron-collapse id="collapse"> | ||
<div>Content goes here...</div> | ||
</iron-collapse> | ||
|
||
... | ||
|
||
toggle: function() { | ||
this.$.collapse.toggle(); | ||
} | ||
|
||
`iron-collapse` adjusts the height/width of the collapsible element to show/hide | ||
the content. So avoid putting padding/margin/border on the collapsible directly, | ||
and instead put a div inside and style that. | ||
|
||
<style> | ||
.collapse-content { | ||
padding: 15px; | ||
border: 1px solid #dedede; | ||
} | ||
</style> | ||
|
||
<iron-collapse> | ||
<div class="collapse-content"> | ||
<div>Content goes here...</div> | ||
</div> | ||
</iron-collapse> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters