Permalink
Browse files

Docs (collapsible set): added info about triggering collapse on all i…

…tems in a set. Fixes #4757
  • Loading branch information...
1 parent 3941c00 commit 18df1056eb25bf7886a1c6b897f76eef796f3805 @jaspermdegroot jaspermdegroot committed Jul 27, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 docs/content/content-collapsible-set-methods.html
@@ -41,12 +41,17 @@
<p>If you manipulate a collapsible set via JavaScript (e.g. add new collapsible containers), you must call the refresh method on it to update the visual styling.</p>
<pre><code>
-$('.selector').collapsibleset('refresh');
+$( ".selector" ).collapsibleset( "refresh" );
</code></pre>
</dd>
</dl>
- <p>To expand or collapse items in a set, call the respective <a href="content-collapsible-methods.html">methods</a> on individual collapsibles.</p>
+ <p>To expand or collapse items in a set, call the respective <a href="content-collapsible-methods.html">methods</a> on individual collapsibles. The selector for the collapse method can include multiple items in a set:</p>
+
+ <dd><pre><code>
+$( "#myCollapsibleSet" ).children().trigger( "collapse" );
+ </code></pre></dd>
+
</div><!--/content-primary -->
<div class="content-secondary">

0 comments on commit 18df105

Please sign in to comment.