Skip to content

Commit 2db982a

Browse files
committed
Controlgroup: Add backcompat options and add deprecation notices
1 parent 21fe223 commit 2db982a

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

entries/controlgroup.xml

+28-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,37 @@
77
<longdesc>
88
<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>
99
</longdesc>
10+
<added>1.3</added>
11+
<options>
12+
<option name="shadow" default="false" example-value="true">
13+
<desc>
14+
<p>Sets whether a drop shadow is drawn around the controlgroup.</p>
15+
<xi:include href="../includes/widget-option-deprecation-1.6.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
16+
<p>This option is also exposed as a data attribute: <code>data-shadow="false"</code>.</p>
17+
</desc>
18+
<type name="Boolean" />
19+
</option>
20+
<option name="type" default="vertical" example-value='"horizontal"'>
21+
<desc>
22+
<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>
23+
<xi:include href="../includes/widget-option-deprecation-1.6.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
24+
<p>This option is also exposed as a data attribute: <code>data-type="horizontal"</code>.</p>
25+
</desc>
26+
<type name="String" />
27+
</option>
28+
<option name="direction" default="vertical" example-value='"horizontal"'>
29+
<desc>
30+
<p>By default, controlgroup displays its controls in a vertical layout. Use this option to use a horizontal layout instead.</p>
31+
<p>This option is also exposed as a data-attribute <code>data-direction="horizontal"</code>.</p>
32+
</desc>
33+
<type name="String" />
34+
</option>
35+
<xi:include href="../includes/widget-option-mini.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
36+
</options>
1037
<methods>
1138
<method name="container">
1239
<desc>Obtain the container element within which the controlgroup's child elements are to be placed.
13-
<p><strong>Note:</strong> <code>container</code> method is deprecated in 1.5 and will be removed in 1.6</p>
40+
<xi:include href="../includes/widget-method-deprecation-1.6.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
1441
<pre><code><![CDATA[
1542
$( ".selector" ).controlgroup( "container" );
1643
]]></code></pre>

0 commit comments

Comments
 (0)