-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathcontrolgroup.xml
48 lines (47 loc) · 2.35 KB
/
controlgroup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../entries2html.xsl" ?>
<entry name="controlgroup" namespace="fn" type="widget" widgetnamespace="mobile" event-prefix="controlgroup" init-selector=":jqmData(role='controlgroup')">
<title>Controlgroup Widget</title>
<desc>Groups buttons together.</desc>
<longdesc>
<p>The jQuery UI controlgroup widget is bundled in jQuery Mobile with some changes. Thus, its <a href="//api.jqueryui.com/controlgroup/">API documentation</a> fully describes its functionality.</p>
</longdesc>
<added>1.3</added>
<options>
<option name="shadow" default="false" example-value="true">
<desc>
<p>Sets whether a drop shadow is drawn around the controlgroup.</p>
<xi:include href="../includes/widget-option-deprecation-1.6.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<p>This option is also exposed as a data attribute: <code>data-shadow="false"</code>.</p>
</desc>
<type name="Boolean" />
</option>
<option name="type" default="vertical" example-value='"horizontal"'>
<desc>
<p>Sets whether children should be stacked on top of each other or next to each other. If set to "horizontal", the children of the controlgroup will be stacked next to each other.</p>
<xi:include href="../includes/widget-option-deprecation-1.6.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<p>This option is also exposed as a data attribute: <code>data-type="horizontal"</code>.</p>
</desc>
<type name="String" />
</option>
<option name="direction" default="vertical" example-value='"horizontal"'>
<desc>
<p>By default, controlgroup displays its controls in a vertical layout. Use this option to use a horizontal layout instead.</p>
<p>This option is also exposed as a data-attribute <code>data-direction="horizontal"</code>.</p>
</desc>
<type name="String" />
</option>
<xi:include href="../includes/widget-option-mini.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</options>
<methods>
<method name="container">
<desc>Obtain the container element within which the controlgroup's child elements are to be placed.
<xi:include href="../includes/widget-method-deprecation-1.6.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<pre><code><![CDATA[
$( ".selector" ).controlgroup( "container" );
]]></code></pre>
</desc>
</method>
</methods>
<category slug="widgets"/>
</entry>