5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>jQuery Mobile Docs - Collapsible Sets</title>
7 <link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
8 <link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
10 <script src="../../js/jquery.js"></script>
11 <script src="../../docs/_assets/js/jqm-docs.js"></script>
12 <script src="../../js/"></script>
17 <div data-role="page" class="type-interior">
19 <div data-role="header" data-theme="f">
20 <h1>Collapsible set</h1>
21 <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
22 <a href="../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
23 </div><!-- /header -->
25 <div data-role="content">
26 <div class="content-primary">
27 <h2>Collapsible sets</h2>
29 <ul data-role="controlgroup" data-type="horizontal" class="localnav">
30 <li><a href="content-collapsible-set.html" data-role="button" data-transition="fade">Basics</a></li>
31 <li><a href="content-collapsible-set-options.html" data-role="button" data-transition="fade">Options</a></li>
32 <li><a href="content-collapsible-set-methods.html" data-role="button" data-transition="fade" class="ui-btn-active">Methods</a></li>
33 <li><a href="content-collapsible-set-events.html" data-role="button" data-transition="fade">Events</a></li>
36 <p>The collapsibleset plugin has the following method:</p>
39 <dt><code>refresh</code> update the collapsible set</dt>
41 <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>
44 $( ".selector" ).collapsibleset( "refresh" );
49 <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>
52 $( "#myCollapsibleSet" ).children().trigger( "collapse" );
55 </div><!--/content-primary -->
57 <div class="content-secondary">
59 <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
61 <h3>More in this section</h3>
63 <ul data-role="listview" data-theme="c" data-dividertheme="d">
65 <li data-role="list-divider">Content Formatting</li>
66 <li><a href="content-html.html">Basic HTML styles</a></li>
67 <li><a href="content-grids.html">Layout grids (columns)</a></li>
68 <li><a href="content-collapsible.html">Collapsible content blocks</a></li>
69 <li data-theme="a"><a href="content-collapsible-set.html">Collapsible sets (accordions)</a></li>
70 <li><a href="content-themes.html">Theming content</a></li>
76 </div><!-- /content -->
78 <div data-role="footer" class="footer-docs" data-theme="c">
79 <p class="jqm-version"></p>
80 <p>© 2012 jQuery Foundation and other contributors</p>