Export 0.2.1
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.2.0 / docs / content / content-collapsible-set-methods.html
1 <!DOCTYPE html> 
2 <html>
3         <head>
4         <meta charset="utf-8">
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"/>
9
10         <script src="../../js/jquery.js"></script>
11         <script src="../../docs/_assets/js/jqm-docs.js"></script>
12         <script src="../../js/"></script>
13
14 </head> 
15 <body> 
16
17         <div data-role="page" class="type-interior">
18
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 -->
24
25         <div data-role="content">
26                 <div class="content-primary">
27                 <h2>Collapsible sets</h2>
28                 
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>
34                         </ul>
35
36                         <p>The collapsibleset plugin has the following method:</p>
37
38                 <dl>
39                         <dt><code>refresh</code> update the collapsible set</dt>
40                         <dd>
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>
42
43                         <pre><code>
44 $( ".selector" ).collapsibleset( "refresh" );
45                                 </code></pre>
46                         </dd>
47
48                 </dl>
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>
50                 
51                 <dd><pre><code>
52 $( "#myCollapsibleSet" ).children().trigger( "collapse" );
53                 </code></pre></dd>
54                                 
55         </div><!--/content-primary -->          
56         
57         <div class="content-secondary">
58                 
59                 <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
60                         
61                                 <h3>More in this section</h3>
62                                 
63                                 <ul data-role="listview" data-theme="c" data-dividertheme="d">
64                                 
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>
71         
72                                 </ul>
73                 </div>
74         </div>
75
76 </div><!-- /content -->
77
78 <div data-role="footer" class="footer-docs" data-theme="c">
79                 <p class="jqm-version"></p>
80                 <p>&copy; 2012 jQuery Foundation and other contributors</p>
81 </div>
82         
83 </div><!-- /page -->
84
85 </body>
86 </html>