source: other-projects/tipple-android/i-greenstone-server-files/greenstone/webapps/greenstone3/interfaces/default/js/jquery-ui-1.8.15/docs/slider.html@ 26899

Last change on this file since 26899 was 26899, checked in by davidb, 11 years ago

Tipple reborn after Chris's Summer of Code 2013

File size: 22.5 KB
Line 
1
2<ul class="UIAPIPlugin-toc">
3<li><a href="#overview">Overview</a></li>
4<li><a href="#options">Options</a></li>
5<li><a href="#events">Events</a></li>
6<li><a href="#methods">Methods</a></li>
7<li><a href="#theming">Theming</a></li>
8</ul>
9<div class="UIAPIPlugin">
10 <h1>jQuery UI Slider</h1>
11 <div id="overview">
12 <h2 class="top-header">Overview</h2>
13 <div id="overview-main">
14 <p>The jQuery UI Slider plugin makes selected elements into sliders. There are various options such as multiple handles, and ranges. The handle can be moved with the mouse or the arrow keys.</p>
15<p>All callbacks receive two arguments: The original browser event and a prepared ui object, view below for a documentation of this object (if you name your second argument 'ui'):
16</p><p>The slider widget will create handle elements with the class 'ui-slider-handle' on initialization. You can specify custom handle elements by creating and appending the elements and adding the 'ui-slider-handle' class before init. It will only create the number of handles needed to match the length of value/values. For example, if you specify 'values: [1, 5, 18]' and create one custom handle, the plugin will create the other two.
17</p>
18<ul>
19 <li><b>ui.handle</b>: DOMElement - the current focused handle
20 <li><b>ui.value</b>: Integer - the current handle's value
21</ul>
22 </div>
23 <div id="overview-dependencies">
24 <h3>Dependencies</h3>
25 <ul>
26<li>UI Core</li>
27<li>UI Widget</li>
28<li>UI Mouse</li>
29</ul>
30 </div>
31 <div id="overview-example">
32 <h3>Example</h3>
33 <div id="overview-example" class="example">
34<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
35<p><div id="demo" class="tabs-container" rel="">
36A simple jQuery UI Slider.<br />
37</p>
38<pre>$(&quot;#slider&quot;).slider();
39</pre>
40<p></div><div id="source" class="tabs-container">
41</p>
42<pre>&lt;!DOCTYPE html&gt;
43&lt;html&gt;
44&lt;head&gt;
45 &lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
46 &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js&quot;&gt;&lt;/script&gt;
47 &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
48 &lt;style type=&quot;text/css&quot;&gt;
49 #slider { margin: 10px; }
50 &lt;/style&gt;
51 &lt;script&gt;
52 $(document).ready(function() {
53 $(&quot;#slider&quot;).slider();
54 });
55 &lt;/script&gt;
56&lt;/head&gt;
57&lt;body style="font-size:62.5%;"&gt;
58
59&lt;div id=&quot;slider&quot;&gt;&lt;/div&gt;
60
61&lt;/body&gt;
62&lt;/html&gt;
63</pre>
64<p></div>
65</p><p></div>
66 </div>
67 </div>
68 <div id="options">
69 <h2 class="top-header">Options</h2>
70 <ul class="options-list">
71
72<li class="option" id="option-disabled">
73 <div class="option-header">
74 <h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
75 <dl>
76 <dt class="option-type-label">Type:</dt>
77 <dd class="option-type">Boolean</dd>
78
79 <dt class="option-default-label">Default:</dt>
80 <dd class="option-default">false</dd>
81
82 </dl>
83 </div>
84 <div class="option-description">
85 <p>Disables (true) or enables (false) the slider. Can be set when initialising (first creating) the slider.</p>
86 </div>
87 <div class="option-examples">
88 <h4>Code examples</h4>
89 <dl class="option-examples-list">
90
91<dt>
92 Initialize a slider with the <code>disabled</code> option specified.
93</dt>
94<dd>
95<pre><code>$( ".selector" ).slider({ disabled: true });</code></pre>
96</dd>
97
98
99<dt>
100 Get or set the <code>disabled</code> option, after init.
101</dt>
102<dd>
103<pre><code>//getter
104var disabled = $( ".selector" ).slider( "option", "disabled" );
105//setter
106$( ".selector" ).slider( "option", "disabled", true );</code></pre>
107</dd>
108
109 </dl>
110 </div>
111</li>
112
113
114<li class="option" id="option-animate">
115 <div class="option-header">
116 <h3 class="option-name"><a href="#option-animate">animate</a></h3>
117 <dl>
118 <dt class="option-type-label">Type:</dt>
119 <dd class="option-type">Boolean, String, Number</dd>
120
121 <dt class="option-default-label">Default:</dt>
122 <dd class="option-default">false</dd>
123
124 </dl>
125 </div>
126 <div class="option-description">
127 <p>Whether to slide handle smoothly when user click outside handle on the bar. Will also accept a string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
128 </div>
129 <div class="option-examples">
130 <h4>Code examples</h4>
131 <dl class="option-examples-list">
132
133<dt>
134 Initialize a slider with the <code>animate</code> option specified.
135</dt>
136<dd>
137<pre><code>$( ".selector" ).slider({ animate: true });</code></pre>
138</dd>
139
140
141<dt>
142 Get or set the <code>animate</code> option, after init.
143</dt>
144<dd>
145<pre><code>//getter
146var animate = $( ".selector" ).slider( "option", "animate" );
147//setter
148$( ".selector" ).slider( "option", "animate", true );</code></pre>
149</dd>
150
151 </dl>
152 </div>
153</li>
154
155
156<li class="option" id="option-max">
157 <div class="option-header">
158 <h3 class="option-name"><a href="#option-max">max</a></h3>
159 <dl>
160 <dt class="option-type-label">Type:</dt>
161 <dd class="option-type">Number</dd>
162
163 <dt class="option-default-label">Default:</dt>
164 <dd class="option-default">100</dd>
165
166 </dl>
167 </div>
168 <div class="option-description">
169 <p>The maximum value of the slider.</p>
170 </div>
171 <div class="option-examples">
172 <h4>Code examples</h4>
173 <dl class="option-examples-list">
174
175<dt>
176 Initialize a slider with the <code>max</code> option specified.
177</dt>
178<dd>
179<pre><code>$( ".selector" ).slider({ max: 7 });</code></pre>
180</dd>
181
182
183<dt>
184 Get or set the <code>max</code> option, after init.
185</dt>
186<dd>
187<pre><code>//getter
188var max = $( ".selector" ).slider( "option", "max" );
189//setter
190$( ".selector" ).slider( "option", "max", 7 );</code></pre>
191</dd>
192
193 </dl>
194 </div>
195</li>
196
197
198<li class="option" id="option-min">
199 <div class="option-header">
200 <h3 class="option-name"><a href="#option-min">min</a></h3>
201 <dl>
202 <dt class="option-type-label">Type:</dt>
203 <dd class="option-type">Number</dd>
204
205 <dt class="option-default-label">Default:</dt>
206 <dd class="option-default">0</dd>
207
208 </dl>
209 </div>
210 <div class="option-description">
211 <p>The minimum value of the slider.</p>
212 </div>
213 <div class="option-examples">
214 <h4>Code examples</h4>
215 <dl class="option-examples-list">
216
217<dt>
218 Initialize a slider with the <code>min</code> option specified.
219</dt>
220<dd>
221<pre><code>$( ".selector" ).slider({ min: -7 });</code></pre>
222</dd>
223
224
225<dt>
226 Get or set the <code>min</code> option, after init.
227</dt>
228<dd>
229<pre><code>//getter
230var min = $( ".selector" ).slider( "option", "min" );
231//setter
232$( ".selector" ).slider( "option", "min", -7 );</code></pre>
233</dd>
234
235 </dl>
236 </div>
237</li>
238
239
240<li class="option" id="option-orientation">
241 <div class="option-header">
242 <h3 class="option-name"><a href="#option-orientation">orientation</a></h3>
243 <dl>
244 <dt class="option-type-label">Type:</dt>
245 <dd class="option-type">String</dd>
246
247 <dt class="option-default-label">Default:</dt>
248 <dd class="option-default">'horizontal'</dd>
249
250 </dl>
251 </div>
252 <div class="option-description">
253 <p>This option determines whether the slider has the min at the left, the max at the right or the min at the bottom, the max at the top. Possible values: 'horizontal', 'vertical'.</p>
254 </div>
255 <div class="option-examples">
256 <h4>Code examples</h4>
257 <dl class="option-examples-list">
258
259<dt>
260 Initialize a slider with the <code>orientation</code> option specified.
261</dt>
262<dd>
263<pre><code>$( ".selector" ).slider({ orientation: 'vertical' });</code></pre>
264</dd>
265
266
267<dt>
268 Get or set the <code>orientation</code> option, after init.
269</dt>
270<dd>
271<pre><code>//getter
272var orientation = $( ".selector" ).slider( "option", "orientation" );
273//setter
274$( ".selector" ).slider( "option", "orientation", 'vertical' );</code></pre>
275</dd>
276
277 </dl>
278 </div>
279</li>
280
281
282<li class="option" id="option-range">
283 <div class="option-header">
284 <h3 class="option-name"><a href="#option-range">range</a></h3>
285 <dl>
286 <dt class="option-type-label">Type:</dt>
287 <dd class="option-type">Boolean, String</dd>
288
289 <dt class="option-default-label">Default:</dt>
290 <dd class="option-default">false</dd>
291
292 </dl>
293 </div>
294 <div class="option-description">
295 <p>If set to true, the slider will detect if you have two handles and create a stylable range element between these two. Two other possible values are 'min' and 'max'. A min range goes from the slider min to one handle. A max range goes from one handle to the slider max.</p>
296 </div>
297 <div class="option-examples">
298 <h4>Code examples</h4>
299 <dl class="option-examples-list">
300
301<dt>
302 Initialize a slider with the <code>range</code> option specified.
303</dt>
304<dd>
305<pre><code>$( ".selector" ).slider({ range: 'min' });</code></pre>
306</dd>
307
308
309<dt>
310 Get or set the <code>range</code> option, after init.
311</dt>
312<dd>
313<pre><code>//getter
314var range = $( ".selector" ).slider( "option", "range" );
315//setter
316$( ".selector" ).slider( "option", "range", 'min' );</code></pre>
317</dd>
318
319 </dl>
320 </div>
321</li>
322
323
324<li class="option" id="option-step">
325 <div class="option-header">
326 <h3 class="option-name"><a href="#option-step">step</a></h3>
327 <dl>
328 <dt class="option-type-label">Type:</dt>
329 <dd class="option-type">Number</dd>
330
331 <dt class="option-default-label">Default:</dt>
332 <dd class="option-default">1</dd>
333
334 </dl>
335 </div>
336 <div class="option-description">
337 <p>Determines the size or amount of each interval or step the slider takes between min and max. The full specified value range of the slider (max - min) needs to be evenly divisible by the step.</p>
338 </div>
339 <div class="option-examples">
340 <h4>Code examples</h4>
341 <dl class="option-examples-list">
342
343<dt>
344 Initialize a slider with the <code>step</code> option specified.
345</dt>
346<dd>
347<pre><code>$( ".selector" ).slider({ step: 5 });</code></pre>
348</dd>
349
350
351<dt>
352 Get or set the <code>step</code> option, after init.
353</dt>
354<dd>
355<pre><code>//getter
356var step = $( ".selector" ).slider( "option", "step" );
357//setter
358$( ".selector" ).slider( "option", "step", 5 );</code></pre>
359</dd>
360
361 </dl>
362 </div>
363</li>
364
365
366<li class="option" id="option-value">
367 <div class="option-header">
368 <h3 class="option-name"><a href="#option-value">value</a></h3>
369 <dl>
370 <dt class="option-type-label">Type:</dt>
371 <dd class="option-type">Number</dd>
372
373 <dt class="option-default-label">Default:</dt>
374 <dd class="option-default">0</dd>
375
376 </dl>
377 </div>
378 <div class="option-description">
379 <p>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.</p>
380 </div>
381 <div class="option-examples">
382 <h4>Code examples</h4>
383 <dl class="option-examples-list">
384
385<dt>
386 Initialize a slider with the <code>value</code> option specified.
387</dt>
388<dd>
389<pre><code>$( ".selector" ).slider({ value: 37 });</code></pre>
390</dd>
391
392
393<dt>
394 Get or set the <code>value</code> option, after init.
395</dt>
396<dd>
397<pre><code>//getter
398var value = $( ".selector" ).slider( "option", "value" );
399//setter
400$( ".selector" ).slider( "option", "value", 37 );</code></pre>
401</dd>
402
403 </dl>
404 </div>
405</li>
406
407
408<li class="option" id="option-values">
409 <div class="option-header">
410 <h3 class="option-name"><a href="#option-values">values</a></h3>
411 <dl>
412 <dt class="option-type-label">Type:</dt>
413 <dd class="option-type">Array</dd>
414
415 <dt class="option-default-label">Default:</dt>
416 <dd class="option-default">null</dd>
417
418 </dl>
419 </div>
420 <div class="option-description">
421 <p>This option can be used to specify multiple handles. If range is set to true, the length of 'values' should be 2.</p>
422 </div>
423 <div class="option-examples">
424 <h4>Code examples</h4>
425 <dl class="option-examples-list">
426
427<dt>
428 Initialize a slider with the <code>values</code> option specified.
429</dt>
430<dd>
431<pre><code>$( ".selector" ).slider({ values: [1,5,9] });</code></pre>
432</dd>
433
434
435<dt>
436 Get or set the <code>values</code> option, after init.
437</dt>
438<dd>
439<pre><code>//getter
440var values = $( ".selector" ).slider( "option", "values" );
441//setter
442$( ".selector" ).slider( "option", "values", [1,5,9] );</code></pre>
443</dd>
444
445 </dl>
446 </div>
447</li>
448
449 </ul>
450 </div>
451 <div id="events">
452 <h2 class="top-header">Events</h2>
453 <ul class="events-list">
454
455<li class="event" id="event-create">
456 <div class="event-header">
457 <h3 class="event-name"><a href="#event-create">create</a></h3>
458 <dl>
459 <dt class="event-type-label">Type:</dt>
460 <dd class="event-type">slidecreate</dd>
461 </dl>
462 </div>
463 <div class="event-description">
464 <p>This event is triggered when slider is created.</p>
465 </div>
466 <div class="event-examples">
467 <h4>Code examples</h4>
468 <dl class="event-examples-list">
469
470<dt>
471 Supply a callback function to handle the <code>create</code> event as an init option.
472</dt>
473<dd>
474<pre><code>$( &quot;.selector&quot; ).slider({
475 create: function(event, ui) { ... }
476});</code></pre>
477</dd>
478
479
480<dt>
481 Bind to the <code>create</code> event by type: <code>slidecreate</code>.
482</dt>
483<dd>
484<pre><code>$( &quot;.selector&quot; ).bind( &quot;slidecreate&quot;, function(event, ui) {
485 ...
486});</code></pre>
487</dd>
488
489 </dl>
490 </div>
491</li>
492
493
494<li class="event" id="event-start">
495 <div class="event-header">
496 <h3 class="event-name"><a href="#event-start">start</a></h3>
497 <dl>
498 <dt class="event-type-label">Type:</dt>
499 <dd class="event-type">slidestart</dd>
500 </dl>
501 </div>
502 <div class="event-description">
503 <p>This event is triggered when the user starts sliding.</p>
504 </div>
505 <div class="event-examples">
506 <h4>Code examples</h4>
507 <dl class="event-examples-list">
508
509<dt>
510 Supply a callback function to handle the <code>start</code> event as an init option.
511</dt>
512<dd>
513<pre><code>$( &quot;.selector&quot; ).slider({
514 start: function(event, ui) { ... }
515});</code></pre>
516</dd>
517
518
519<dt>
520 Bind to the <code>start</code> event by type: <code>slidestart</code>.
521</dt>
522<dd>
523<pre><code>$( &quot;.selector&quot; ).bind( &quot;slidestart&quot;, function(event, ui) {
524 ...
525});</code></pre>
526</dd>
527
528 </dl>
529 </div>
530</li>
531
532
533<li class="event" id="event-slide">
534 <div class="event-header">
535 <h3 class="event-name"><a href="#event-slide">slide</a></h3>
536 <dl>
537 <dt class="event-type-label">Type:</dt>
538 <dd class="event-type">slide</dd>
539 </dl>
540 </div>
541 <div class="event-description">
542 <p>This event is triggered on every mouse move during slide. Use ui.value (single-handled sliders) to obtain the value of the current handle, $(..).slider('value', index) to get another handles' value.
543</p><p>Return false in order to prevent a slide, based on ui.value.</p>
544 </div>
545 <div class="event-examples">
546 <h4>Code examples</h4>
547 <dl class="event-examples-list">
548
549<dt>
550 Supply a callback function to handle the <code>slide</code> event as an init option.
551</dt>
552<dd>
553<pre><code>$( &quot;.selector&quot; ).slider({
554 slide: function(event, ui) { ... }
555});</code></pre>
556</dd>
557
558
559<dt>
560 Bind to the <code>slide</code> event by type: <code>slide</code>.
561</dt>
562<dd>
563<pre><code>$( &quot;.selector&quot; ).bind( &quot;slide&quot;, function(event, ui) {
564 ...
565});</code></pre>
566</dd>
567
568 </dl>
569 </div>
570</li>
571
572
573<li class="event" id="event-change">
574 <div class="event-header">
575 <h3 class="event-name"><a href="#event-change">change</a></h3>
576 <dl>
577 <dt class="event-type-label">Type:</dt>
578 <dd class="event-type">slidechange</dd>
579 </dl>
580 </div>
581 <div class="event-description">
582 <p>This event is triggered on slide stop, or if the value is changed programmatically (by the <code>value</code> method). Takes arguments event and ui. Use event.orginalEvent to detect whether the value changed by mouse, keyboard, or programmatically. Use ui.value (single-handled sliders) to obtain the value of the current handle, $(this).slider('values', index) to get another handle's value.</p>
583 </div>
584 <div class="event-examples">
585 <h4>Code examples</h4>
586 <dl class="event-examples-list">
587
588<dt>
589 Supply a callback function to handle the <code>change</code> event as an init option.
590</dt>
591<dd>
592<pre><code>$( &quot;.selector&quot; ).slider({
593 change: function(event, ui) { ... }
594});</code></pre>
595</dd>
596
597
598<dt>
599 Bind to the <code>change</code> event by type: <code>slidechange</code>.
600</dt>
601<dd>
602<pre><code>$( &quot;.selector&quot; ).bind( &quot;slidechange&quot;, function(event, ui) {
603 ...
604});</code></pre>
605</dd>
606
607 </dl>
608 </div>
609</li>
610
611
612<li class="event" id="event-stop">
613 <div class="event-header">
614 <h3 class="event-name"><a href="#event-stop">stop</a></h3>
615 <dl>
616 <dt class="event-type-label">Type:</dt>
617 <dd class="event-type">slidestop</dd>
618 </dl>
619 </div>
620 <div class="event-description">
621 <p>This event is triggered when the user stops sliding.</p>
622 </div>
623 <div class="event-examples">
624 <h4>Code examples</h4>
625 <dl class="event-examples-list">
626
627<dt>
628 Supply a callback function to handle the <code>stop</code> event as an init option.
629</dt>
630<dd>
631<pre><code>$( &quot;.selector&quot; ).slider({
632 stop: function(event, ui) { ... }
633});</code></pre>
634</dd>
635
636
637<dt>
638 Bind to the <code>stop</code> event by type: <code>slidestop</code>.
639</dt>
640<dd>
641<pre><code>$( &quot;.selector&quot; ).bind( &quot;slidestop&quot;, function(event, ui) {
642 ...
643});</code></pre>
644</dd>
645
646 </dl>
647 </div>
648</li>
649
650 </ul>
651 </div>
652 <div id="methods">
653 <h2 class="top-header">Methods</h2>
654 <ul class="methods-list">
655
656<li class="method" id="method-destroy">
657 <div class="method-header">
658 <h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
659 <dl>
660 <dt class="method-signature-label">Signature:</dt>
661 <dd class="method-signature">.slider( "destroy"
662
663
664
665
666
667
668
669)</dd>
670 </dl>
671 </div>
672 <div class="method-description">
673 <p>Remove the slider functionality completely. This will return the element back to its pre-init state.</p>
674 </div>
675</li>
676
677
678<li class="method" id="method-disable">
679 <div class="method-header">
680 <h3 class="method-name"><a href="#method-disable">disable</a></h3>
681 <dl>
682 <dt class="method-signature-label">Signature:</dt>
683 <dd class="method-signature">.slider( "disable"
684
685
686
687
688
689
690
691)</dd>
692 </dl>
693 </div>
694 <div class="method-description">
695 <p>Disable the slider.</p>
696 </div>
697</li>
698
699
700<li class="method" id="method-enable">
701 <div class="method-header">
702 <h3 class="method-name"><a href="#method-enable">enable</a></h3>
703 <dl>
704 <dt class="method-signature-label">Signature:</dt>
705 <dd class="method-signature">.slider( "enable"
706
707
708
709
710
711
712
713)</dd>
714 </dl>
715 </div>
716 <div class="method-description">
717 <p>Enable the slider.</p>
718 </div>
719</li>
720
721
722<li class="method" id="method-option">
723 <div class="method-header">
724 <h3 class="method-name"><a href="#method-option">option</a></h3>
725 <dl>
726 <dt class="method-signature-label">Signature:</dt>
727 <dd class="method-signature">.slider( "option"
728
729, optionName
730
731, <span class="optional">[</span>value<span class="optional">] </span>
732
733
734
735)</dd>
736 </dl>
737 </div>
738 <div class="method-description">
739 <p>Get or set any slider option. If no value is specified, will act as a getter.</p>
740 </div>
741</li>
742
743
744<li class="method" id="method-option">
745 <div class="method-header">
746 <h3 class="method-name"><a href="#method-option">option</a></h3>
747 <dl>
748 <dt class="method-signature-label">Signature:</dt>
749 <dd class="method-signature">.slider( "option"
750
751, options
752
753
754
755
756
757)</dd>
758 </dl>
759 </div>
760 <div class="method-description">
761 <p>Set multiple slider options at once by providing an options object.</p>
762 </div>
763</li>
764
765
766<li class="method" id="method-widget">
767 <div class="method-header">
768 <h3 class="method-name"><a href="#method-widget">widget</a></h3>
769 <dl>
770 <dt class="method-signature-label">Signature:</dt>
771 <dd class="method-signature">.slider( "widget"
772
773
774
775
776
777
778
779)</dd>
780 </dl>
781 </div>
782 <div class="method-description">
783 <p>Returns the .ui-slider element.</p>
784 </div>
785</li>
786
787
788<li class="method" id="method-value">
789 <div class="method-header">
790 <h3 class="method-name"><a href="#method-value">value</a></h3>
791 <dl>
792 <dt class="method-signature-label">Signature:</dt>
793 <dd class="method-signature">.slider( "value"
794
795, <span class="optional">[</span>value<span class="optional">] </span>
796
797
798
799
800
801)</dd>
802 </dl>
803 </div>
804 <div class="method-description">
805 <p>Gets or sets the value of the slider. For single handle sliders.</p>
806 </div>
807</li>
808
809
810<li class="method" id="method-values">
811 <div class="method-header">
812 <h3 class="method-name"><a href="#method-values">values</a></h3>
813 <dl>
814 <dt class="method-signature-label">Signature:</dt>
815 <dd class="method-signature">.slider( "values"
816
817, index
818
819, <span class="optional">[</span>value<span class="optional">] </span>
820
821
822
823)</dd>
824 </dl>
825 </div>
826 <div class="method-description">
827 <p>Gets or sets the values of the slider. For multiple handle or range sliders.</p>
828 </div>
829</li>
830
831 </ul>
832 </div>
833 <div id="theming">
834 <h2 class="top-header">Theming</h2>
835 <p>The jQuery UI Slider plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
836</p>
837 <p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.slider.css stylesheet that can be modified. These classes are highlighed in bold below.
838</p>
839
840 <h3>Sample markup with jQuery UI CSS Framework classes</h3>
841 &lt;div class=&quot;ui-slider<strong> ui-slider-horizontal</strong> ui-widget ui-widget-content ui-corner-all&quot;&gt;<br />
842&nbsp;&nbsp;&nbsp;&lt;a style=&quot;left: 0%;&quot; class=&quot;<strong>ui-slider-handle</strong> ui-state-default ui-corner-all&quot; href=&quot;#&quot;&gt;&lt;/a&gt;<br />
843&lt;/div&gt;<br />
844 <p class="theme-note">
845 <strong>
846 Note: This is a sample of markup generated by the slider plugin, not markup you should use to create a slider. The only markup needed for that is &lt;div&gt;&lt;div&gt;.
847 </strong>
848 </p>
849
850 </div>
851</div>
852
853</p><!--
854Pre-expand include size: 36451 bytes
855Post-expand include size: 55582 bytes
856Template argument size: 27644 bytes
857Maximum: 2097152 bytes
858-->
859
860<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3776-1!1!0!!en!2 and timestamp 20110801231449 -->
Note: See TracBrowser for help on using the repository browser.