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

Commit f504e1a

Browse files
committed
Docs: Add dividerTheme paragraph for optgroup support (selects/options.html)
1 parent 69fc980 commit f504e1a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/forms/selects/options.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,18 @@ <h2>Select menus</h2>
4545
<p class="default">default: true</p>
4646
<p>Applies the theme button border-radius to the select button if set to true. This option is also exposed as a data attribute: <code>data-corners=&quot;false&quot;</code></p>
4747
<pre><code>$('select').selectmenu(<strong>{ corners: false }</strong>);</code></pre>
48-
</dd>
48+
</dd>
49+
<dt><code>dividerTheme</code> <em>string</em></dt>
50+
<dd>
51+
<p class="default">default: "b"</p>
52+
<p>Sets the color scheme (swatch) for dividers in popup-based custom select menus when using the <code>optgroup</code> support. 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>
53+
<pre><code>$( document ).bind( "mobileinit", function(){
54+
<strong>$.mobile.listview.prototype.options.dividerTheme = "a";</strong>
55+
});
56+
</code></pre>
57+
<p>This option is also exposed as a data attribute: <code>data-divider-theme=&quot;a&quot;</code>.</p>
58+
</dd>
59+
4960
<dt><code>icon</code> <em>string</em></dt>
5061
<dd>
5162
<p class="default">default: "arrow-down"</p>

0 commit comments

Comments
 (0)