Skip to content

Commit fd1ccc1

Browse files
committed
Rangeslider: Theming section and classes option
1 parent e495718 commit fd1ccc1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

entries/rangeslider.xml

+29
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,29 @@
1010
<p>As you drag the rangeslider's handles, the framework will update the native input values (and vice-versa) so they are always in sync; this ensures that the values are submitted with the form.</p>
1111
<p>Set the <code>for</code> attribute of the <code>labels</code> to match the <code>ids</code> of the <code>inputs</code> so they are semantically associated. It's possible to accessibly hide the labels if they're not desired in the page layout, but we require that they are present in the markup for semantic and accessibility reasons.</p>
1212
<p>The framework will find all <code>input</code> elements with a <code>type="range"</code> and automatically enhance them into a slider with an accompanying input without any need to apply a <code>data-role</code> attribute. To prevent the automatic enhancement of this input into a slider, add the <code>data-role="none"</code> attribute to the inputs.</p>
13+
14+
<xi:include href="../includes/widget-theming.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
15+
16+
<ul>
17+
<li>
18+
<code>ui-rangeslider</code>: The outermost container for rangeslider.
19+
<ul>
20+
<li>
21+
<code>ui-slider-popup</code>: Tooltip popup element in case <code>data-popup-enabled</code> is <code>true</code>
22+
</li>
23+
<li>
24+
<code>ui-slider-first</code>: Opening range input element of rangeslider
25+
</li>
26+
<li>
27+
<code>ui-slider-last</code>: Closing range input element of rangeslider
28+
</li>
29+
<li>
30+
<code>ui-rangeslider-sliders</code>: Sliders for rangeslider
31+
</li>
32+
</ul>
33+
</li>
34+
</ul>
35+
1336
<p>In this example, the acceptable range is 0-100.</p>
1437

1538
<pre><code><![CDATA[
@@ -121,6 +144,12 @@ $( "div#range-slider" ).rangeslider();
121144
</longdesc>
122145
<added>1.3</added>
123146
<options>
147+
<option name="classes" type="Object">
148+
<default>{}</default>
149+
<xi:include href="../includes/classes-option-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
150+
<xi:include href="../includes/classes-option-example.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
151+
</option>
152+
124153
<xi:include href="../includes/widget-option-defaults.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
125154
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
126155
<option name="highlight" default="true" example-value="false">

0 commit comments

Comments
 (0)