Skip to content

Deprecate style options checkboxradio #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions entries/checkboxradio.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

<h3>Mini version</h3>

<p>For a more compact version that is useful in toolbars and tight spaces, add the <code>data-mini="true"</code> attribute to the element to create a mini version.</p>
<p>For a more compact version that is useful in toolbars and tight spaces, add the class <code>ui-mini</code> to the element's <code>data-wrapper-class</code> attribute to create a mini version.</p>

<pre><code><![CDATA[
<input type="checkbox" name="checkbox-mini" id="checkbox-mini-1" class="custom" data-mini="true">
<input type="checkbox" name="checkbox-mini" id="checkbox-mini-1" class="custom" data-wrapper-class="ui-mini">
<label for="checkbox-mini-1">I agree</label>
]]></code></pre>

Expand Down Expand Up @@ -209,7 +209,14 @@
<type name="String" />
</option>
<xi:include href="../includes/widget-option-initSelector.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<xi:include href="../includes/widget-option-mini.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="mini" default="null (false)" deprecated="1.5.0">
<desc>
<p><strong>This option is deprecated as of jQuery Mobile 1.5.0.</strong> Add class <code>ui-mini</code> to the <a href="#option-wrapperClass">wrapperClass</a> option to achieve the mini look.</p>
<p>If set to <code>true</code>, this will display a more compact version of the <placeholder name="name"/> that uses less vertical height by applying the <code>ui-mini</code> class to the outermost element of the <placeholder name="name"/> widget.</p>
<p>This option is also exposed as a data attribute: <code>data-mini="true"</code>.</p>
</desc>
<type name="Boolean" />
</option>
<option name="wrapperClass" default="null" example-value='"custom-class"'>
<desc>It is difficult to write custom CSS for the wrapper <code>div</code> around the native <code>input</code> element generated by the framework. This option allows you to specify one or more space-separated class names to be added to the wrapper <code>div</code> element by the framework.
<p>This option is also exposed as a data attribute: <code>data-wrapper-class="custom-class"</code>.</p>
Expand Down