Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
updated dependencies and readme to 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Savage committed May 15, 2015
1 parent 2c11f03 commit d0c5730
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
32 changes: 32 additions & 0 deletions README.md
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>
7 changes: 4 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "iron-collapse",
"version": "0.9.0",
"description": "Provides a collapsable container",
"authors": [
"The Polymer Authors"
],
Expand All @@ -17,10 +18,10 @@
},
"license": "MIT",
"homepage": "https://github.com/PolymerElements/iron-collapse",
"ignore": [
],
"ignore": [],
"dependencies": {
"polymer": "Polymer/polymer#v0.9.0-rc.1"
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"polymer": "Polymer/polymer#^0.9.0"
},
"devDependencies": {
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.6.0",
Expand Down

0 comments on commit d0c5730

Please sign in to comment.