Skip to content

Commit c2cf420

Browse files
committed
Slider: Added option examples.
1 parent c58debb commit c2cf420

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

entries/slider.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<note id="functional-css"/>
1111
<added>1.5</added>
1212
<options>
13-
<option name="animate" default="false">
13+
<option name="animate" default="false" example-value='"fast"'>
1414
<desc>Whether to slide the handle smoothly when the user clicks on the slider track. Also accepts any valid <a href="//api.jquery.com/animate/#duration">animation duration</a>.</desc>
1515
<type name="Boolean">
1616
<desc>When set to <code>true</code>, the handle will animate with the default duration.</desc>
@@ -23,16 +23,16 @@
2323
</type>
2424
</option>
2525
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
26-
<option name="max" type="Number" default="100">
26+
<option name="max" type="Number" default="100" example-value='50'>
2727
<desc>The maximum value of the slider.</desc>
2828
</option>
29-
<option name="min" type="Number" default="0">
29+
<option name="min" type="Number" default="0" example-value='10'>
3030
<desc>The minimum value of the slider.</desc>
3131
</option>
32-
<option name="orientation" type="String" default='"horizontal"'>
32+
<option name="orientation" type="String" default='"horizontal"' example-value='"vertical"'>
3333
<desc>Determines whether the slider handles move horizontally (min on left, max on right) or vertically (min on bottom, max on top). Possible values: <code>"horizontal"</code>, <code>"vertical"</code>.</desc>
3434
</option>
35-
<option name="range" default="false">
35+
<option name="range" default="false" example-value='true'>
3636
<desc>Whether the slider represents a range.</desc>
3737
<type name="Boolean">
3838
<desc>If set to <code>true</code>, the slider will detect if you have two handles and create a stylable range element between these two.</desc>
@@ -41,13 +41,13 @@
4141
<desc>Either <code>"min"</code> or <code>"max"</code>. A min range goes from the slider min to one handle. A max range goes from one handle to the slider max.</desc>
4242
</type>
4343
</option>
44-
<option name="step" type="Number" default="1">
44+
<option name="step" type="Number" default="1" example-value='5'>
4545
<desc>Determines the size or amount of each interval or step the slider takes between the min and max. The full specified value range of the slider (max - min) should be evenly divisible by the step.</desc>
4646
</option>
47-
<option name="value" type="Number" default="0">
47+
<option name="value" type="Number" default="0" example-value='10'>
4848
<desc>Determines the value of the slider, if there's only one handle. If there is more than one handle, determines the value of the first handle.</desc>
4949
</option>
50-
<option name="values" type="Array" default='null'>
50+
<option name="values" type="Array" default='null' example-value='[ 10, 25 ]'>
5151
<desc>This option can be used to specify multiple handles. If the <a href="#option-range"><code>range</code></a> option is set to <code>true</code>, the length of <code>values</code> should be 2.</desc>
5252
</option>
5353
</options>

0 commit comments

Comments
 (0)