Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Updated code to match the new style. We might drop this page once the…
Browse files Browse the repository at this point in the history
… more detailed API info is added to each plugin,
  • Loading branch information
toddparker committed Aug 4, 2011
1 parent 570c13c commit 4c3ecde
Showing 1 changed file with 23 additions and 28 deletions.
51 changes: 23 additions & 28 deletions docs/forms/plugin-eventsmethods.html
Expand Up @@ -22,28 +22,27 @@ <h1>Form Plugin Methods</h1>

<div data-role="content">
<div class="content-primary">

<h2>Form methods reference</h2>
<p>After jQuery Mobile auto-enhances form controls into custom controls, you can manipulate many of their properties via plugin methods. The currently available methods are listed below. Check Github for updates - we're working on complete coverage.</p>

<h2>Selectmenu</h2>
<dl>
<dt>Methods</dt>
<dd><code>open</code> open a closed select menu</dd>
<dt><code>open</code> open a closed select menu</dt>
<dd>
<pre><code>
$('select').selectmenu('open');
</code></pre>
</dd>

<dd><code>close</code> close an open select menu</dd>
<dt><code>close</code> close an open select menu</dt>
<dd>
<pre><code>
$('select').selectmenu('close');
</code></pre>
</dd>

<dd><code>refresh</code>: Update the custom menu to reflect the native select element's value. If the number of options in the select are different than the number of items in the custom menu, it'll rebuild the custom menu. Also, if you pass a true argument you can force the rebuild to happen.</dd>
<dd>
<dt><code>refresh</code>: Update the custom menu to reflect the native select element's value. </dt>
<dd><p>If the number of options in the select are different than the number of items in the custom menu, it'll rebuild the custom menu. Also, if you pass a true argument you can force the rebuild to happen.</p>
<pre><code>
//refresh value
$('select').selectmenu('refresh');
Expand All @@ -53,14 +52,14 @@ <h2>Selectmenu</h2>
</code></pre>
</dd>

<dd><code>enable</code>: enable a disabled select.</dd>
<dt><code>enable</code>: enable a disabled select.</dt>
<dd>
<pre><code>
$('select').selectmenu('enable');
</code></pre>
</dd>

<dd><code>disable</code>: disable a select.</dd>
<dt><code>disable</code>: disable a select.</dt>
<dd>
<pre><code>
$('select').selectmenu('disable');
Expand All @@ -75,17 +74,16 @@ <h2>Selectmenu</h2>


<h2>Textinput</h2>

<dl>
<dt>Methods</dt>

<dd><code>enable</code>: enable a disabled textinput/textarea.</dd>
<dt><code>enable</code>: enable a disabled textinput/textarea.</dt>
<dd>
<pre><code>
$('input').textinput('enable');
</code></pre>
</dd>

<dd><code>disable</code>: disable a textinput/textarea.</dd>
<dt><code>disable</code>: disable a textinput/textarea.</dt>
<dd>
<pre><code>
$('textarea').textinput('disable');
Expand All @@ -99,24 +97,23 @@ <h2>Textinput</h2>


<h2>checkboxradio</h2>

<dl>
<dt>Methods</dt>

<dd><code>enable</code>: enable a disabled checkboxradio.</dd>
<dt><code>enable</code>: enable a disabled checkboxradio.</dt>
<dd>
<pre><code>
$('input').checkboxradio('enable');
</code></pre>
</dd>

<dd><code>disable</code>: disable a checkboxradio.</dd>
<dt><code>disable</code>: disable a checkboxradio.</dt>
<dd>
<pre><code>
$('input').checkboxradio('disable');
</code></pre>
</dd>

<dd><code>refresh</code>: refresh a checkboxradio's value.</dd>
<dt><code>refresh</code>: refresh a checkboxradio's value.</dt>
<dd>
<pre><code>
$('input').checkboxradio('refresh');
Expand All @@ -125,25 +122,24 @@ <h2>checkboxradio</h2>
</dl>


<h2>slider</h2>
<h2>Slider</h2>

<dl>
<dt>Methods</dt>

<dd><code>enable</code>: enable a disabled slider.</dd>
<dt><code>enable</code>: enable a disabled slider.</dt>
<dd>
<pre><code>
$('input').slider('enable');
</code></pre>
</dd>

<dd><code>disable</code>: disable a slider.</dd>
<dt><code>disable</code>: disable a slider.</dt>
<dd>
<pre><code>
$('input').slider('disable');
</code></pre>
</dd>

<dd><code>refresh</code>: refresh a slider's value.</dd>
<dt><code>refresh</code>: refresh a slider's value.</dt>
<dd>
<pre><code>
$('input').slider('refresh');
Expand All @@ -152,18 +148,17 @@ <h2>slider</h2>
</dl>


<h2>Form buttons</h2>
<h2>Form buttons</h2>

<dl>
<dt>Methods</dt>

<dd><code>enable</code>: enable a disabled button.</dd>
<dt><code>enable</code>: enable a disabled button.</dt>
<dd>
<pre><code>
$('input').button('enable');
</code></pre>
</dd>

<dd><code>disable</code>: disable a slider.</dd>
<dt><code>disable</code>: disable a slider.</dt>
<dd>
<pre><code>
$('input').button('disable');
Expand Down

0 comments on commit 4c3ecde

Please sign in to comment.