Export 0.1.45
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.1.0 / docs / content / content-collapsible-set-options.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" class="ui-btn-active">Options</a></li>
32                                 <li><a href="content-collapsible-set-methods.html" data-role="button" data-transition="fade">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 collapsible plugin has the following options:</p>
37
38                 <dl>
39                         <dt><code>iconpos</code> <em>string</em></dt>
40                         <dd>
41                                 <p class="default">default: "left"</p>
42                                 <p>Positions the icons in the collapsible headers. Possible values: left, right, top, bottom, none, notext.</p>
43 <pre><code>$( document ).bind( "mobileinit", function(){
44     <strong>$.mobile.collapsibleset.prototype.options.iconpos = "right";</strong>
45 });
46 </code></pre>
47                                 <p>This option is also exposed as a data attribute: <code>data-iconpos=&quot;right&quot;</code>.</p>
48                         </dd>
49
50                         <dt><code>initSelector</code> <em>CSS selector string</em></dt>
51                         <dd>
52                                 <p class="default">default: ":jqmData(role='collapsible-set')"</p>
53                                 <p>This is used to define the selectors (element types, data roles, etc.) that will automatically be initialized as collapsible sets. To change which elements are initialized, bind this option to the <a href="../../api/globalconfig.html">mobileinit event</a>:</p>
54 <pre><code>$( document ).bind( "mobileinit", function(){
55     <strong>$.mobile.collapsibleset.prototype.options.initSelector = ".mycollapsibleset";</strong>
56 });
57 </code></pre>
58                         </dd>
59
60                         <dt><code>mini</code> <em>boolean</em></dt>
61                         <dd>
62                                 <p class="default">default: false</p>
63                                 <p>Sets the size of the element to a more compact, <a href="../forms/forms-all-mini.html">mini version</a>. To set the value for all instances of this widget, bind this option to the <a href="../../api/globalconfig.html">mobileinit event</a>:</p>
64 <pre><code>$( document ).bind( "mobileinit", function(){
65     <strong>$.mobile.collapsibleset.prototype.options.mini = true;</strong>
66 });
67 </code></pre>
68                                 <p>This option is also exposed as a data attribute: <code>data-mini=&quot;true&quot;</code>.</p>
69                         </dd>
70                         <dt><code>theme</code> <em>string</em></dt>
71                         <dd>
72                                 <p class="default">default: null, inherited from parent</p>
73                                 <p>Sets the color scheme (swatch) for the collapsible set. It accepts a single letter from a-z that maps to the swatches included in your theme. To set the value for all instances of this widget, bind this option to the <a href="../../api/globalconfig.html">mobileinit event</a>:</p>
74 <pre><code>$( document ).bind( "mobileinit", function(){
75     <strong>$.mobile.collapsibleset.prototype.options.theme = "a";</strong>
76 });
77 </code></pre>
78                                 <p>This option is also exposed as a data attribute: <code>data-theme=&quot;a&quot;</code>.</p>
79                         </dd>
80
81                 </dl>
82         </div><!--/content-primary -->          
83         
84         <div class="content-secondary">
85                 
86                 <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
87                         
88                                 <h3>More in this section</h3>
89                                 
90                                 <ul data-role="listview" data-theme="c" data-dividertheme="d">
91                                 
92                                         <li data-role="list-divider">Content Formatting</li>
93                                         <li><a href="content-html.html">Basic HTML styles</a></li>
94                                         <li><a href="content-grids.html">Layout grids (columns)</a></li>
95                                         <li><a href="content-collapsible.html">Collapsible content blocks</a></li>
96                                         <li data-theme="a"><a href="content-collapsible-set.html">Collapsible sets (accordions)</a></li>
97                                         <li><a href="content-themes.html">Theming content</a></li>
98         
99                                 </ul>
100                 </div>
101         </div>
102
103 </div><!-- /content -->
104
105 <div data-role="footer" class="footer-docs" data-theme="c">
106                 <p>&copy; 2011-12 The jQuery Foundation</p>
107 </div>
108         
109 </div><!-- /page -->
110
111 </body>
112 </html>