source: main/trunk/greenstone3/web/interfaces/oran/js/jquery-ui-1.8.15/docs/draggable.html@ 24421

Last change on this file since 24421 was 24421, checked in by sjm84, 13 years ago

Adding a new version of jquery

  • Property svn:executable set to *
File size: 41.7 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 Draggable</h1>
11 <div id="overview">
12 <h2 class="top-header">Overview</h2>
13 <div id="overview-main">
14 <p>The jQuery UI Draggable plugin makes selected elements draggable by mouse.</p>
15<p>Draggable elements gets a class of <code>ui-draggable</code>. During drag the element also gets a class of <code>ui-draggable-dragging</code>. If you want not just drag, but drag-and-drop, see the jQuery UI Droppable plugin, which provides a drop target for draggables.</p>
16<p>All callbacks (start, stop, drag) 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'):</p>
17<ul>
18<li><b>ui.helper</b> - the jQuery object representing the helper that's being dragged</li>
19<li><b>ui.position</b> - current position of the helper as { top, left } object, relative to the offset element</li>
20<li><b>ui.offset</b> - current absolute position of the helper as { top, left } object, relative to page</li>
21</ul>
22<p><br />
23</p>
24<p>To manipulate the position of a draggable during drag, you can either <a href="http://jsbin.com/etako/edit" class="external text" title="http://jsbin.com/etako/edit">use a wrapper as the draggable helper</a> and position the wrapped element with absolute positioning, or you can correct internal values like so: <code>$(this).data('draggable').offset.click.top -= x</code>.</p>
25 </div>
26 <div id="overview-dependencies">
27 <h3>Dependencies</h3>
28 <ul>
29<li>UI Core</li>
30<li>UI Widget</li>
31<li>UI Mouse</li>
32</ul>
33 </div>
34 <div id="overview-example">
35 <h3>Example</h3>
36 <div id="overview-example" class="example">
37<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
38<p><div id="demo" class="tabs-container" rel="170">
39Initialize a draggable with default options.<br />
40</p>
41<pre>$(&quot;#draggable&quot;).draggable();
42</pre>
43<p></div><div id="source" class="tabs-container">
44</p>
45<pre>&lt;!DOCTYPE html&gt;
46&lt;html&gt;
47&lt;head&gt;
48 &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;
49 &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js&quot;&gt;&lt;/script&gt;
50 &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
51 &lt;style type=&quot;text/css&quot;&gt;
52 #draggable { width: 100px; height: 70px; background: silver; }
53 &lt;/style&gt;
54 &lt;script&gt;
55 $(document).ready(function() {
56 $(&quot;#draggable&quot;).draggable();
57 });
58 &lt;/script&gt;
59&lt;/head&gt;
60&lt;body style="font-size:62.5%;"&gt;
61
62&lt;div id=&quot;draggable&quot;&gt;Drag me&lt;/div&gt;
63
64&lt;/body&gt;
65&lt;/html&gt;
66</pre>
67<p></div>
68</p><p></div>
69 </div>
70 </div>
71 <div id="options">
72 <h2 class="top-header">Options</h2>
73 <ul class="options-list">
74
75<li class="option" id="option-disabled">
76 <div class="option-header">
77 <h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
78 <dl>
79 <dt class="option-type-label">Type:</dt>
80 <dd class="option-type">Boolean</dd>
81
82 <dt class="option-default-label">Default:</dt>
83 <dd class="option-default">false</dd>
84
85 </dl>
86 </div>
87 <div class="option-description">
88 <p>Disables (true) or enables (false) the draggable. Can be set when initialising (first creating) the draggable.</p>
89 </div>
90 <div class="option-examples">
91 <h4>Code examples</h4>
92 <dl class="option-examples-list">
93
94<dt>
95 Initialize a draggable with the <code>disabled</code> option specified.
96</dt>
97<dd>
98<pre><code>$( ".selector" ).draggable({ disabled: true });</code></pre>
99</dd>
100
101
102<dt>
103 Get or set the <code>disabled</code> option, after init.
104</dt>
105<dd>
106<pre><code>//getter
107var disabled = $( ".selector" ).draggable( "option", "disabled" );
108//setter
109$( ".selector" ).draggable( "option", "disabled", true );</code></pre>
110</dd>
111
112 </dl>
113 </div>
114</li>
115
116
117<li class="option" id="option-addClasses">
118 <div class="option-header">
119 <h3 class="option-name"><a href="#option-addClasses">addClasses</a></h3>
120 <dl>
121 <dt class="option-type-label">Type:</dt>
122 <dd class="option-type">Boolean</dd>
123
124 <dt class="option-default-label">Default:</dt>
125 <dd class="option-default">true</dd>
126
127 </dl>
128 </div>
129 <div class="option-description">
130 <p>If set to false, will prevent the <code>ui-draggable</code> class from being added. This may be desired as a performance optimization when calling <code>.draggable()</code> init on many hundreds of elements.</p>
131 </div>
132 <div class="option-examples">
133 <h4>Code examples</h4>
134 <dl class="option-examples-list">
135
136<dt>
137 Initialize a draggable with the <code>addClasses</code> option specified.
138</dt>
139<dd>
140<pre><code>$( ".selector" ).draggable({ addClasses: false });</code></pre>
141</dd>
142
143
144<dt>
145 Get or set the <code>addClasses</code> option, after init.
146</dt>
147<dd>
148<pre><code>//getter
149var addClasses = $( ".selector" ).draggable( "option", "addClasses" );
150//setter
151$( ".selector" ).draggable( "option", "addClasses", false );</code></pre>
152</dd>
153
154 </dl>
155 </div>
156</li>
157
158
159<li class="option" id="option-appendTo">
160 <div class="option-header">
161 <h3 class="option-name"><a href="#option-appendTo">appendTo</a></h3>
162 <dl>
163 <dt class="option-type-label">Type:</dt>
164 <dd class="option-type">Element, Selector</dd>
165
166 <dt class="option-default-label">Default:</dt>
167 <dd class="option-default">'parent'</dd>
168
169 </dl>
170 </div>
171 <div class="option-description">
172 <p>The element passed to or selected by the <code>appendTo</code> option will be used as the draggable helper's container during dragging. By default, the helper is appended to the same container as the draggable.</p>
173 </div>
174 <div class="option-examples">
175 <h4>Code examples</h4>
176 <dl class="option-examples-list">
177
178<dt>
179 Initialize a draggable with the <code>appendTo</code> option specified.
180</dt>
181<dd>
182<pre><code>$( ".selector" ).draggable({ appendTo: 'body' });</code></pre>
183</dd>
184
185
186<dt>
187 Get or set the <code>appendTo</code> option, after init.
188</dt>
189<dd>
190<pre><code>//getter
191var appendTo = $( ".selector" ).draggable( "option", "appendTo" );
192//setter
193$( ".selector" ).draggable( "option", "appendTo", 'body' );</code></pre>
194</dd>
195
196 </dl>
197 </div>
198</li>
199
200
201<li class="option" id="option-axis">
202 <div class="option-header">
203 <h3 class="option-name"><a href="#option-axis">axis</a></h3>
204 <dl>
205 <dt class="option-type-label">Type:</dt>
206 <dd class="option-type">String</dd>
207
208 <dt class="option-default-label">Default:</dt>
209 <dd class="option-default">false</dd>
210
211 </dl>
212 </div>
213 <div class="option-description">
214 <p>Constrains dragging to either the horizontal (x) or vertical (y) axis. Possible values: 'x', 'y'.</p>
215 </div>
216 <div class="option-examples">
217 <h4>Code examples</h4>
218 <dl class="option-examples-list">
219
220<dt>
221 Initialize a draggable with the <code>axis</code> option specified.
222</dt>
223<dd>
224<pre><code>$( ".selector" ).draggable({ axis: 'x' });</code></pre>
225</dd>
226
227
228<dt>
229 Get or set the <code>axis</code> option, after init.
230</dt>
231<dd>
232<pre><code>//getter
233var axis = $( ".selector" ).draggable( "option", "axis" );
234//setter
235$( ".selector" ).draggable( "option", "axis", 'x' );</code></pre>
236</dd>
237
238 </dl>
239 </div>
240</li>
241
242
243<li class="option" id="option-cancel">
244 <div class="option-header">
245 <h3 class="option-name"><a href="#option-cancel">cancel</a></h3>
246 <dl>
247 <dt class="option-type-label">Type:</dt>
248 <dd class="option-type">Selector</dd>
249
250 <dt class="option-default-label">Default:</dt>
251 <dd class="option-default">':input,option'</dd>
252
253 </dl>
254 </div>
255 <div class="option-description">
256 <p>Prevents dragging from starting on specified elements.</p>
257 </div>
258 <div class="option-examples">
259 <h4>Code examples</h4>
260 <dl class="option-examples-list">
261
262<dt>
263 Initialize a draggable with the <code>cancel</code> option specified.
264</dt>
265<dd>
266<pre><code>$( ".selector" ).draggable({ cancel: 'button' });</code></pre>
267</dd>
268
269
270<dt>
271 Get or set the <code>cancel</code> option, after init.
272</dt>
273<dd>
274<pre><code>//getter
275var cancel = $( ".selector" ).draggable( "option", "cancel" );
276//setter
277$( ".selector" ).draggable( "option", "cancel", 'button' );</code></pre>
278</dd>
279
280 </dl>
281 </div>
282</li>
283
284
285<li class="option" id="option-connectToSortable">
286 <div class="option-header">
287 <h3 class="option-name"><a href="#option-connectToSortable">connectToSortable</a></h3>
288 <dl>
289 <dt class="option-type-label">Type:</dt>
290 <dd class="option-type">Selector</dd>
291
292 <dt class="option-default-label">Default:</dt>
293 <dd class="option-default">false</dd>
294
295 </dl>
296 </div>
297 <div class="option-description">
298 <p>Allows the draggable to be dropped onto the specified sortables. If this option is used (<code>helper</code> must be set to 'clone' in order to work flawlessly), a draggable can be dropped onto a sortable list and then becomes part of it.
299</p><p>Note: Specifying this option as an array of selectors has been removed.</p>
300 </div>
301 <div class="option-examples">
302 <h4>Code examples</h4>
303 <dl class="option-examples-list">
304
305<dt>
306 Initialize a draggable with the <code>connectToSortable</code> option specified.
307</dt>
308<dd>
309<pre><code>$( ".selector" ).draggable({ connectToSortable: 'ul#myList' });</code></pre>
310</dd>
311
312
313<dt>
314 Get or set the <code>connectToSortable</code> option, after init.
315</dt>
316<dd>
317<pre><code>//getter
318var connectToSortable = $( ".selector" ).draggable( "option", "connectToSortable" );
319//setter
320$( ".selector" ).draggable( "option", "connectToSortable", 'ul#myList' );</code></pre>
321</dd>
322
323 </dl>
324 </div>
325</li>
326
327
328<li class="option" id="option-containment">
329 <div class="option-header">
330 <h3 class="option-name"><a href="#option-containment">containment</a></h3>
331 <dl>
332 <dt class="option-type-label">Type:</dt>
333 <dd class="option-type">Selector, Element, String, Array</dd>
334
335 <dt class="option-default-label">Default:</dt>
336 <dd class="option-default">false</dd>
337
338 </dl>
339 </div>
340 <div class="option-description">
341 <p>Constrains dragging to within the bounds of the specified element or region. Possible string values: 'parent', 'document', 'window', [x1, y1, x2, y2].</p>
342 </div>
343 <div class="option-examples">
344 <h4>Code examples</h4>
345 <dl class="option-examples-list">
346
347<dt>
348 Initialize a draggable with the <code>containment</code> option specified.
349</dt>
350<dd>
351<pre><code>$( ".selector" ).draggable({ containment: 'parent' });</code></pre>
352</dd>
353
354
355<dt>
356 Get or set the <code>containment</code> option, after init.
357</dt>
358<dd>
359<pre><code>//getter
360var containment = $( ".selector" ).draggable( "option", "containment" );
361//setter
362$( ".selector" ).draggable( "option", "containment", 'parent' );</code></pre>
363</dd>
364
365 </dl>
366 </div>
367</li>
368
369
370<li class="option" id="option-cursor">
371 <div class="option-header">
372 <h3 class="option-name"><a href="#option-cursor">cursor</a></h3>
373 <dl>
374 <dt class="option-type-label">Type:</dt>
375 <dd class="option-type">String</dd>
376
377 <dt class="option-default-label">Default:</dt>
378 <dd class="option-default">'auto'</dd>
379
380 </dl>
381 </div>
382 <div class="option-description">
383 <p>The css cursor during the drag operation.</p>
384 </div>
385 <div class="option-examples">
386 <h4>Code examples</h4>
387 <dl class="option-examples-list">
388
389<dt>
390 Initialize a draggable with the <code>cursor</code> option specified.
391</dt>
392<dd>
393<pre><code>$( ".selector" ).draggable({ cursor: 'crosshair' });</code></pre>
394</dd>
395
396
397<dt>
398 Get or set the <code>cursor</code> option, after init.
399</dt>
400<dd>
401<pre><code>//getter
402var cursor = $( ".selector" ).draggable( "option", "cursor" );
403//setter
404$( ".selector" ).draggable( "option", "cursor", 'crosshair' );</code></pre>
405</dd>
406
407 </dl>
408 </div>
409</li>
410
411
412<li class="option" id="option-cursorAt">
413 <div class="option-header">
414 <h3 class="option-name"><a href="#option-cursorAt">cursorAt</a></h3>
415 <dl>
416 <dt class="option-type-label">Type:</dt>
417 <dd class="option-type">Object</dd>
418
419 <dt class="option-default-label">Default:</dt>
420 <dd class="option-default">false</dd>
421
422 </dl>
423 </div>
424 <div class="option-description">
425 <p>Sets the offset of the dragging helper relative to the mouse cursor. Coordinates can be given as a hash using a combination of one or two keys: <code>{ top, left, right, bottom }</code>.</p>
426 </div>
427 <div class="option-examples">
428 <h4>Code examples</h4>
429 <dl class="option-examples-list">
430
431<dt>
432 Initialize a draggable with the <code>cursorAt</code> option specified.
433</dt>
434<dd>
435<pre><code>$( ".selector" ).draggable({ cursorAt: { left: 5 } });</code></pre>
436</dd>
437
438
439<dt>
440 Get or set the <code>cursorAt</code> option, after init.
441</dt>
442<dd>
443<pre><code>//getter
444var cursorAt = $( ".selector" ).draggable( "option", "cursorAt" );
445//setter
446$( ".selector" ).draggable( "option", "cursorAt", { left: 5 } );</code></pre>
447</dd>
448
449 </dl>
450 </div>
451</li>
452
453
454<li class="option" id="option-delay">
455 <div class="option-header">
456 <h3 class="option-name"><a href="#option-delay">delay</a></h3>
457 <dl>
458 <dt class="option-type-label">Type:</dt>
459 <dd class="option-type">Integer</dd>
460
461 <dt class="option-default-label">Default:</dt>
462 <dd class="option-default">0</dd>
463
464 </dl>
465 </div>
466 <div class="option-description">
467 <p>Time in milliseconds after mousedown until dragging should start. This option can be used to prevent unwanted drags when clicking on an element.</p>
468 </div>
469 <div class="option-examples">
470 <h4>Code examples</h4>
471 <dl class="option-examples-list">
472
473<dt>
474 Initialize a draggable with the <code>delay</code> option specified.
475</dt>
476<dd>
477<pre><code>$( ".selector" ).draggable({ delay: 500 });</code></pre>
478</dd>
479
480
481<dt>
482 Get or set the <code>delay</code> option, after init.
483</dt>
484<dd>
485<pre><code>//getter
486var delay = $( ".selector" ).draggable( "option", "delay" );
487//setter
488$( ".selector" ).draggable( "option", "delay", 500 );</code></pre>
489</dd>
490
491 </dl>
492 </div>
493</li>
494
495
496<li class="option" id="option-distance">
497 <div class="option-header">
498 <h3 class="option-name"><a href="#option-distance">distance</a></h3>
499 <dl>
500 <dt class="option-type-label">Type:</dt>
501 <dd class="option-type">Integer</dd>
502
503 <dt class="option-default-label">Default:</dt>
504 <dd class="option-default">1</dd>
505
506 </dl>
507 </div>
508 <div class="option-description">
509 <p>Distance in pixels after mousedown the mouse must move before dragging should start. This option can be used to prevent unwanted drags when clicking on an element.</p>
510 </div>
511 <div class="option-examples">
512 <h4>Code examples</h4>
513 <dl class="option-examples-list">
514
515<dt>
516 Initialize a draggable with the <code>distance</code> option specified.
517</dt>
518<dd>
519<pre><code>$( ".selector" ).draggable({ distance: 30 });</code></pre>
520</dd>
521
522
523<dt>
524 Get or set the <code>distance</code> option, after init.
525</dt>
526<dd>
527<pre><code>//getter
528var distance = $( ".selector" ).draggable( "option", "distance" );
529//setter
530$( ".selector" ).draggable( "option", "distance", 30 );</code></pre>
531</dd>
532
533 </dl>
534 </div>
535</li>
536
537
538<li class="option" id="option-grid">
539 <div class="option-header">
540 <h3 class="option-name"><a href="#option-grid">grid</a></h3>
541 <dl>
542 <dt class="option-type-label">Type:</dt>
543 <dd class="option-type">Array</dd>
544
545 <dt class="option-default-label">Default:</dt>
546 <dd class="option-default">false</dd>
547
548 </dl>
549 </div>
550 <div class="option-description">
551 <p>Snaps the dragging helper to a grid, every x and y pixels. Array values: [x, y]</p>
552 </div>
553 <div class="option-examples">
554 <h4>Code examples</h4>
555 <dl class="option-examples-list">
556
557<dt>
558 Initialize a draggable with the <code>grid</code> option specified.
559</dt>
560<dd>
561<pre><code>$( ".selector" ).draggable({ grid: [50, 20] });</code></pre>
562</dd>
563
564
565<dt>
566 Get or set the <code>grid</code> option, after init.
567</dt>
568<dd>
569<pre><code>//getter
570var grid = $( ".selector" ).draggable( "option", "grid" );
571//setter
572$( ".selector" ).draggable( "option", "grid", [50, 20] );</code></pre>
573</dd>
574
575 </dl>
576 </div>
577</li>
578
579
580<li class="option" id="option-handle">
581 <div class="option-header">
582 <h3 class="option-name"><a href="#option-handle">handle</a></h3>
583 <dl>
584 <dt class="option-type-label">Type:</dt>
585 <dd class="option-type">Element, Selector</dd>
586
587 <dt class="option-default-label">Default:</dt>
588 <dd class="option-default">false</dd>
589
590 </dl>
591 </div>
592 <div class="option-description">
593 <p>If specified, restricts drag start click to the specified element(s).</p>
594 </div>
595 <div class="option-examples">
596 <h4>Code examples</h4>
597 <dl class="option-examples-list">
598
599<dt>
600 Initialize a draggable with the <code>handle</code> option specified.
601</dt>
602<dd>
603<pre><code>$( ".selector" ).draggable({ handle: 'h2' });</code></pre>
604</dd>
605
606
607<dt>
608 Get or set the <code>handle</code> option, after init.
609</dt>
610<dd>
611<pre><code>//getter
612var handle = $( ".selector" ).draggable( "option", "handle" );
613//setter
614$( ".selector" ).draggable( "option", "handle", 'h2' );</code></pre>
615</dd>
616
617 </dl>
618 </div>
619</li>
620
621
622<li class="option" id="option-helper">
623 <div class="option-header">
624 <h3 class="option-name"><a href="#option-helper">helper</a></h3>
625 <dl>
626 <dt class="option-type-label">Type:</dt>
627 <dd class="option-type">String, Function</dd>
628
629 <dt class="option-default-label">Default:</dt>
630 <dd class="option-default">'original'</dd>
631
632 </dl>
633 </div>
634 <div class="option-description">
635 <p>Allows for a helper element to be used for dragging display. Possible values: 'original', 'clone', Function. If a function is specified, it must return a DOMElement.</p>
636 </div>
637 <div class="option-examples">
638 <h4>Code examples</h4>
639 <dl class="option-examples-list">
640
641<dt>
642 Initialize a draggable with the <code>helper</code> option specified.
643</dt>
644<dd>
645<pre><code>$( ".selector" ).draggable({ helper: 'clone' });</code></pre>
646</dd>
647
648
649<dt>
650 Get or set the <code>helper</code> option, after init.
651</dt>
652<dd>
653<pre><code>//getter
654var helper = $( ".selector" ).draggable( "option", "helper" );
655//setter
656$( ".selector" ).draggable( "option", "helper", 'clone' );</code></pre>
657</dd>
658
659 </dl>
660 </div>
661</li>
662
663
664<li class="option" id="option-iframeFix">
665 <div class="option-header">
666 <h3 class="option-name"><a href="#option-iframeFix">iframeFix</a></h3>
667 <dl>
668 <dt class="option-type-label">Type:</dt>
669 <dd class="option-type">Boolean, Selector</dd>
670
671 <dt class="option-default-label">Default:</dt>
672 <dd class="option-default">false</dd>
673
674 </dl>
675 </div>
676 <div class="option-description">
677 <p>Prevent iframes from capturing the mousemove events during a drag. Useful in combination with cursorAt, or in any case, if the mouse cursor is not over the helper. If set to true, transparent overlays will be placed over all iframes on the page. If a selector is supplied, the matched iframes will have an overlay placed over them.</p>
678 </div>
679 <div class="option-examples">
680 <h4>Code examples</h4>
681 <dl class="option-examples-list">
682
683<dt>
684 Initialize a draggable with the <code>iframeFix</code> option specified.
685</dt>
686<dd>
687<pre><code>$( ".selector" ).draggable({ iframeFix: true });</code></pre>
688</dd>
689
690
691<dt>
692 Get or set the <code>iframeFix</code> option, after init.
693</dt>
694<dd>
695<pre><code>//getter
696var iframeFix = $( ".selector" ).draggable( "option", "iframeFix" );
697//setter
698$( ".selector" ).draggable( "option", "iframeFix", true );</code></pre>
699</dd>
700
701 </dl>
702 </div>
703</li>
704
705
706<li class="option" id="option-opacity">
707 <div class="option-header">
708 <h3 class="option-name"><a href="#option-opacity">opacity</a></h3>
709 <dl>
710 <dt class="option-type-label">Type:</dt>
711 <dd class="option-type">Float</dd>
712
713 <dt class="option-default-label">Default:</dt>
714 <dd class="option-default">false</dd>
715
716 </dl>
717 </div>
718 <div class="option-description">
719 <p>Opacity for the helper while being dragged.</p>
720 </div>
721 <div class="option-examples">
722 <h4>Code examples</h4>
723 <dl class="option-examples-list">
724
725<dt>
726 Initialize a draggable with the <code>opacity</code> option specified.
727</dt>
728<dd>
729<pre><code>$( ".selector" ).draggable({ opacity: 0.35 });</code></pre>
730</dd>
731
732
733<dt>
734 Get or set the <code>opacity</code> option, after init.
735</dt>
736<dd>
737<pre><code>//getter
738var opacity = $( ".selector" ).draggable( "option", "opacity" );
739//setter
740$( ".selector" ).draggable( "option", "opacity", 0.35 );</code></pre>
741</dd>
742
743 </dl>
744 </div>
745</li>
746
747
748<li class="option" id="option-refreshPositions">
749 <div class="option-header">
750 <h3 class="option-name"><a href="#option-refreshPositions">refreshPositions</a></h3>
751 <dl>
752 <dt class="option-type-label">Type:</dt>
753 <dd class="option-type">Boolean</dd>
754
755 <dt class="option-default-label">Default:</dt>
756 <dd class="option-default">false</dd>
757
758 </dl>
759 </div>
760 <div class="option-description">
761 <p>If set to true, all droppable positions are calculated on every mousemove. Caution: This solves issues on highly dynamic pages, but dramatically decreases performance.</p>
762 </div>
763 <div class="option-examples">
764 <h4>Code examples</h4>
765 <dl class="option-examples-list">
766
767<dt>
768 Initialize a draggable with the <code>refreshPositions</code> option specified.
769</dt>
770<dd>
771<pre><code>$( ".selector" ).draggable({ refreshPositions: true });</code></pre>
772</dd>
773
774
775<dt>
776 Get or set the <code>refreshPositions</code> option, after init.
777</dt>
778<dd>
779<pre><code>//getter
780var refreshPositions = $( ".selector" ).draggable( "option", "refreshPositions" );
781//setter
782$( ".selector" ).draggable( "option", "refreshPositions", true );</code></pre>
783</dd>
784
785 </dl>
786 </div>
787</li>
788
789
790<li class="option" id="option-revert">
791 <div class="option-header">
792 <h3 class="option-name"><a href="#option-revert">revert</a></h3>
793 <dl>
794 <dt class="option-type-label">Type:</dt>
795 <dd class="option-type">Boolean, String</dd>
796
797 <dt class="option-default-label">Default:</dt>
798 <dd class="option-default">false</dd>
799
800 </dl>
801 </div>
802 <div class="option-description">
803 <p>If set to true, the element will return to its start position when dragging stops. Possible string values: 'valid', 'invalid'. If set to invalid, revert will only occur if the draggable has not been dropped on a droppable. For valid, it's the other way around.</p>
804 </div>
805 <div class="option-examples">
806 <h4>Code examples</h4>
807 <dl class="option-examples-list">
808
809<dt>
810 Initialize a draggable with the <code>revert</code> option specified.
811</dt>
812<dd>
813<pre><code>$( ".selector" ).draggable({ revert: true });</code></pre>
814</dd>
815
816
817<dt>
818 Get or set the <code>revert</code> option, after init.
819</dt>
820<dd>
821<pre><code>//getter
822var revert = $( ".selector" ).draggable( "option", "revert" );
823//setter
824$( ".selector" ).draggable( "option", "revert", true );</code></pre>
825</dd>
826
827 </dl>
828 </div>
829</li>
830
831
832<li class="option" id="option-revertDuration">
833 <div class="option-header">
834 <h3 class="option-name"><a href="#option-revertDuration">revertDuration</a></h3>
835 <dl>
836 <dt class="option-type-label">Type:</dt>
837 <dd class="option-type">Integer</dd>
838
839 <dt class="option-default-label">Default:</dt>
840 <dd class="option-default">500</dd>
841
842 </dl>
843 </div>
844 <div class="option-description">
845 <p>The duration of the revert animation, in milliseconds. Ignored if revert is false.</p>
846 </div>
847 <div class="option-examples">
848 <h4>Code examples</h4>
849 <dl class="option-examples-list">
850
851<dt>
852 Initialize a draggable with the <code>revertDuration</code> option specified.
853</dt>
854<dd>
855<pre><code>$( ".selector" ).draggable({ revertDuration: 1000 });</code></pre>
856</dd>
857
858
859<dt>
860 Get or set the <code>revertDuration</code> option, after init.
861</dt>
862<dd>
863<pre><code>//getter
864var revertDuration = $( ".selector" ).draggable( "option", "revertDuration" );
865//setter
866$( ".selector" ).draggable( "option", "revertDuration", 1000 );</code></pre>
867</dd>
868
869 </dl>
870 </div>
871</li>
872
873
874<li class="option" id="option-scope">
875 <div class="option-header">
876 <h3 class="option-name"><a href="#option-scope">scope</a></h3>
877 <dl>
878 <dt class="option-type-label">Type:</dt>
879 <dd class="option-type">String</dd>
880
881 <dt class="option-default-label">Default:</dt>
882 <dd class="option-default">'default'</dd>
883
884 </dl>
885 </div>
886 <div class="option-description">
887 <p>Used to group sets of draggable and droppable items, in addition to droppable's accept option. A draggable with the same scope value as a droppable will be accepted by the droppable.</p>
888 </div>
889 <div class="option-examples">
890 <h4>Code examples</h4>
891 <dl class="option-examples-list">
892
893<dt>
894 Initialize a draggable with the <code>scope</code> option specified.
895</dt>
896<dd>
897<pre><code>$( ".selector" ).draggable({ scope: 'tasks' });</code></pre>
898</dd>
899
900
901<dt>
902 Get or set the <code>scope</code> option, after init.
903</dt>
904<dd>
905<pre><code>//getter
906var scope = $( ".selector" ).draggable( "option", "scope" );
907//setter
908$( ".selector" ).draggable( "option", "scope", 'tasks' );</code></pre>
909</dd>
910
911 </dl>
912 </div>
913</li>
914
915
916<li class="option" id="option-scroll">
917 <div class="option-header">
918 <h3 class="option-name"><a href="#option-scroll">scroll</a></h3>
919 <dl>
920 <dt class="option-type-label">Type:</dt>
921 <dd class="option-type">Boolean</dd>
922
923 <dt class="option-default-label">Default:</dt>
924 <dd class="option-default">true</dd>
925
926 </dl>
927 </div>
928 <div class="option-description">
929 <p>If set to true, container auto-scrolls while dragging.</p>
930 </div>
931 <div class="option-examples">
932 <h4>Code examples</h4>
933 <dl class="option-examples-list">
934
935<dt>
936 Initialize a draggable with the <code>scroll</code> option specified.
937</dt>
938<dd>
939<pre><code>$( ".selector" ).draggable({ scroll: false });</code></pre>
940</dd>
941
942
943<dt>
944 Get or set the <code>scroll</code> option, after init.
945</dt>
946<dd>
947<pre><code>//getter
948var scroll = $( ".selector" ).draggable( "option", "scroll" );
949//setter
950$( ".selector" ).draggable( "option", "scroll", false );</code></pre>
951</dd>
952
953 </dl>
954 </div>
955</li>
956
957
958<li class="option" id="option-scrollSensitivity">
959 <div class="option-header">
960 <h3 class="option-name"><a href="#option-scrollSensitivity">scrollSensitivity</a></h3>
961 <dl>
962 <dt class="option-type-label">Type:</dt>
963 <dd class="option-type">Integer</dd>
964
965 <dt class="option-default-label">Default:</dt>
966 <dd class="option-default">20</dd>
967
968 </dl>
969 </div>
970 <div class="option-description">
971 <p>Distance in pixels from the edge of the viewport after which the viewport should scroll. Distance is relative to pointer, not the draggable.</p>
972 </div>
973 <div class="option-examples">
974 <h4>Code examples</h4>
975 <dl class="option-examples-list">
976
977<dt>
978 Initialize a draggable with the <code>scrollSensitivity</code> option specified.
979</dt>
980<dd>
981<pre><code>$( ".selector" ).draggable({ scrollSensitivity: 40 });</code></pre>
982</dd>
983
984
985<dt>
986 Get or set the <code>scrollSensitivity</code> option, after init.
987</dt>
988<dd>
989<pre><code>//getter
990var scrollSensitivity = $( ".selector" ).draggable( "option", "scrollSensitivity" );
991//setter
992$( ".selector" ).draggable( "option", "scrollSensitivity", 40 );</code></pre>
993</dd>
994
995 </dl>
996 </div>
997</li>
998
999
1000<li class="option" id="option-scrollSpeed">
1001 <div class="option-header">
1002 <h3 class="option-name"><a href="#option-scrollSpeed">scrollSpeed</a></h3>
1003 <dl>
1004 <dt class="option-type-label">Type:</dt>
1005 <dd class="option-type">Integer</dd>
1006
1007 <dt class="option-default-label">Default:</dt>
1008 <dd class="option-default">20</dd>
1009
1010 </dl>
1011 </div>
1012 <div class="option-description">
1013 <p>The speed at which the window should scroll once the mouse pointer gets within the <code>scrollSensitivity</code> distance.</p>
1014 </div>
1015 <div class="option-examples">
1016 <h4>Code examples</h4>
1017 <dl class="option-examples-list">
1018
1019<dt>
1020 Initialize a draggable with the <code>scrollSpeed</code> option specified.
1021</dt>
1022<dd>
1023<pre><code>$( ".selector" ).draggable({ scrollSpeed: 40 });</code></pre>
1024</dd>
1025
1026
1027<dt>
1028 Get or set the <code>scrollSpeed</code> option, after init.
1029</dt>
1030<dd>
1031<pre><code>//getter
1032var scrollSpeed = $( ".selector" ).draggable( "option", "scrollSpeed" );
1033//setter
1034$( ".selector" ).draggable( "option", "scrollSpeed", 40 );</code></pre>
1035</dd>
1036
1037 </dl>
1038 </div>
1039</li>
1040
1041
1042<li class="option" id="option-snap">
1043 <div class="option-header">
1044 <h3 class="option-name"><a href="#option-snap">snap</a></h3>
1045 <dl>
1046 <dt class="option-type-label">Type:</dt>
1047 <dd class="option-type">Boolean, Selector</dd>
1048
1049 <dt class="option-default-label">Default:</dt>
1050 <dd class="option-default">false</dd>
1051
1052 </dl>
1053 </div>
1054 <div class="option-description">
1055 <p>If set to a selector or to true (equivalent to '.ui-draggable'), the draggable will snap to the edges of the selected elements when near an edge of the element.</p>
1056 </div>
1057 <div class="option-examples">
1058 <h4>Code examples</h4>
1059 <dl class="option-examples-list">
1060
1061<dt>
1062 Initialize a draggable with the <code>snap</code> option specified.
1063</dt>
1064<dd>
1065<pre><code>$( ".selector" ).draggable({ snap: true });</code></pre>
1066</dd>
1067
1068
1069<dt>
1070 Get or set the <code>snap</code> option, after init.
1071</dt>
1072<dd>
1073<pre><code>//getter
1074var snap = $( ".selector" ).draggable( "option", "snap" );
1075//setter
1076$( ".selector" ).draggable( "option", "snap", true );</code></pre>
1077</dd>
1078
1079 </dl>
1080 </div>
1081</li>
1082
1083
1084<li class="option" id="option-snapMode">
1085 <div class="option-header">
1086 <h3 class="option-name"><a href="#option-snapMode">snapMode</a></h3>
1087 <dl>
1088 <dt class="option-type-label">Type:</dt>
1089 <dd class="option-type">String</dd>
1090
1091 <dt class="option-default-label">Default:</dt>
1092 <dd class="option-default">'both'</dd>
1093
1094 </dl>
1095 </div>
1096 <div class="option-description">
1097 <p>Determines which edges of snap elements the draggable will snap to. Ignored if snap is false. Possible values: 'inner', 'outer', 'both'</p>
1098 </div>
1099 <div class="option-examples">
1100 <h4>Code examples</h4>
1101 <dl class="option-examples-list">
1102
1103<dt>
1104 Initialize a draggable with the <code>snapMode</code> option specified.
1105</dt>
1106<dd>
1107<pre><code>$( ".selector" ).draggable({ snapMode: 'outer' });</code></pre>
1108</dd>
1109
1110
1111<dt>
1112 Get or set the <code>snapMode</code> option, after init.
1113</dt>
1114<dd>
1115<pre><code>//getter
1116var snapMode = $( ".selector" ).draggable( "option", "snapMode" );
1117//setter
1118$( ".selector" ).draggable( "option", "snapMode", 'outer' );</code></pre>
1119</dd>
1120
1121 </dl>
1122 </div>
1123</li>
1124
1125
1126<li class="option" id="option-snapTolerance">
1127 <div class="option-header">
1128 <h3 class="option-name"><a href="#option-snapTolerance">snapTolerance</a></h3>
1129 <dl>
1130 <dt class="option-type-label">Type:</dt>
1131 <dd class="option-type">Integer</dd>
1132
1133 <dt class="option-default-label">Default:</dt>
1134 <dd class="option-default">20</dd>
1135
1136 </dl>
1137 </div>
1138 <div class="option-description">
1139 <p>The distance in pixels from the snap element edges at which snapping should occur. Ignored if snap is false.</p>
1140 </div>
1141 <div class="option-examples">
1142 <h4>Code examples</h4>
1143 <dl class="option-examples-list">
1144
1145<dt>
1146 Initialize a draggable with the <code>snapTolerance</code> option specified.
1147</dt>
1148<dd>
1149<pre><code>$( ".selector" ).draggable({ snapTolerance: 40 });</code></pre>
1150</dd>
1151
1152
1153<dt>
1154 Get or set the <code>snapTolerance</code> option, after init.
1155</dt>
1156<dd>
1157<pre><code>//getter
1158var snapTolerance = $( ".selector" ).draggable( "option", "snapTolerance" );
1159//setter
1160$( ".selector" ).draggable( "option", "snapTolerance", 40 );</code></pre>
1161</dd>
1162
1163 </dl>
1164 </div>
1165</li>
1166
1167
1168<li class="option" id="option-stack">
1169 <div class="option-header">
1170 <h3 class="option-name"><a href="#option-stack">stack</a></h3>
1171 <dl>
1172 <dt class="option-type-label">Type:</dt>
1173 <dd class="option-type">Selector</dd>
1174
1175 <dt class="option-default-label">Default:</dt>
1176 <dd class="option-default">false</dd>
1177
1178 </dl>
1179 </div>
1180 <div class="option-description">
1181 <p>Controls the z-Index of the set of elements that match the selector, always brings to front the dragged item. Very useful in things like window managers.</p>
1182 </div>
1183 <div class="option-examples">
1184 <h4>Code examples</h4>
1185 <dl class="option-examples-list">
1186
1187<dt>
1188 Initialize a draggable with the <code>stack</code> option specified.
1189</dt>
1190<dd>
1191<pre><code>$( ".selector" ).draggable({ stack: &quot;.products&quot; });</code></pre>
1192</dd>
1193
1194
1195<dt>
1196 Get or set the <code>stack</code> option, after init.
1197</dt>
1198<dd>
1199<pre><code>//getter
1200var stack = $( ".selector" ).draggable( "option", "stack" );
1201//setter
1202$( ".selector" ).draggable( "option", "stack", &quot;.products&quot; );</code></pre>
1203</dd>
1204
1205 </dl>
1206 </div>
1207</li>
1208
1209
1210<li class="option" id="option-zIndex">
1211 <div class="option-header">
1212 <h3 class="option-name"><a href="#option-zIndex">zIndex</a></h3>
1213 <dl>
1214 <dt class="option-type-label">Type:</dt>
1215 <dd class="option-type">Integer</dd>
1216
1217 <dt class="option-default-label">Default:</dt>
1218 <dd class="option-default">false</dd>
1219
1220 </dl>
1221 </div>
1222 <div class="option-description">
1223 <p>z-index for the helper while being dragged.</p>
1224 </div>
1225 <div class="option-examples">
1226 <h4>Code examples</h4>
1227 <dl class="option-examples-list">
1228
1229<dt>
1230 Initialize a draggable with the <code>zIndex</code> option specified.
1231</dt>
1232<dd>
1233<pre><code>$( ".selector" ).draggable({ zIndex: 2700 });</code></pre>
1234</dd>
1235
1236
1237<dt>
1238 Get or set the <code>zIndex</code> option, after init.
1239</dt>
1240<dd>
1241<pre><code>//getter
1242var zIndex = $( ".selector" ).draggable( "option", "zIndex" );
1243//setter
1244$( ".selector" ).draggable( "option", "zIndex", 2700 );</code></pre>
1245</dd>
1246
1247 </dl>
1248 </div>
1249</li>
1250
1251 </ul>
1252 </div>
1253 <div id="events">
1254 <h2 class="top-header">Events</h2>
1255 <ul class="events-list">
1256
1257<li class="event" id="event-create">
1258 <div class="event-header">
1259 <h3 class="event-name"><a href="#event-create">create</a></h3>
1260 <dl>
1261 <dt class="event-type-label">Type:</dt>
1262 <dd class="event-type">dragcreate</dd>
1263 </dl>
1264 </div>
1265 <div class="event-description">
1266 <p>This event is triggered when draggable is created.</p>
1267 </div>
1268 <div class="event-examples">
1269 <h4>Code examples</h4>
1270 <dl class="event-examples-list">
1271
1272<dt>
1273 Supply a callback function to handle the <code>create</code> event as an init option.
1274</dt>
1275<dd>
1276<pre><code>$( &quot;.selector&quot; ).draggable({
1277 create: function(event, ui) { ... }
1278});</code></pre>
1279</dd>
1280
1281
1282<dt>
1283 Bind to the <code>create</code> event by type: <code>dragcreate</code>.
1284</dt>
1285<dd>
1286<pre><code>$( &quot;.selector&quot; ).bind( &quot;dragcreate&quot;, function(event, ui) {
1287 ...
1288});</code></pre>
1289</dd>
1290
1291 </dl>
1292 </div>
1293</li>
1294
1295
1296<li class="event" id="event-start">
1297 <div class="event-header">
1298 <h3 class="event-name"><a href="#event-start">start</a></h3>
1299 <dl>
1300 <dt class="event-type-label">Type:</dt>
1301 <dd class="event-type">dragstart</dd>
1302 </dl>
1303 </div>
1304 <div class="event-description">
1305 <p>This event is triggered when dragging starts.</p>
1306 </div>
1307 <div class="event-examples">
1308 <h4>Code examples</h4>
1309 <dl class="event-examples-list">
1310
1311<dt>
1312 Supply a callback function to handle the <code>start</code> event as an init option.
1313</dt>
1314<dd>
1315<pre><code>$( &quot;.selector&quot; ).draggable({
1316 start: function(event, ui) { ... }
1317});</code></pre>
1318</dd>
1319
1320
1321<dt>
1322 Bind to the <code>start</code> event by type: <code>dragstart</code>.
1323</dt>
1324<dd>
1325<pre><code>$( &quot;.selector&quot; ).bind( &quot;dragstart&quot;, function(event, ui) {
1326 ...
1327});</code></pre>
1328</dd>
1329
1330 </dl>
1331 </div>
1332</li>
1333
1334
1335<li class="event" id="event-drag">
1336 <div class="event-header">
1337 <h3 class="event-name"><a href="#event-drag">drag</a></h3>
1338 <dl>
1339 <dt class="event-type-label">Type:</dt>
1340 <dd class="event-type">drag</dd>
1341 </dl>
1342 </div>
1343 <div class="event-description">
1344 <p>This event is triggered when the mouse is moved during the dragging.</p>
1345 </div>
1346 <div class="event-examples">
1347 <h4>Code examples</h4>
1348 <dl class="event-examples-list">
1349
1350<dt>
1351 Supply a callback function to handle the <code>drag</code> event as an init option.
1352</dt>
1353<dd>
1354<pre><code>$( &quot;.selector&quot; ).draggable({
1355 drag: function(event, ui) { ... }
1356});</code></pre>
1357</dd>
1358
1359
1360<dt>
1361 Bind to the <code>drag</code> event by type: <code>drag</code>.
1362</dt>
1363<dd>
1364<pre><code>$( &quot;.selector&quot; ).bind( &quot;drag&quot;, function(event, ui) {
1365 ...
1366});</code></pre>
1367</dd>
1368
1369 </dl>
1370 </div>
1371</li>
1372
1373
1374<li class="event" id="event-stop">
1375 <div class="event-header">
1376 <h3 class="event-name"><a href="#event-stop">stop</a></h3>
1377 <dl>
1378 <dt class="event-type-label">Type:</dt>
1379 <dd class="event-type">dragstop</dd>
1380 </dl>
1381 </div>
1382 <div class="event-description">
1383 <p>This event is triggered when dragging stops.</p>
1384 </div>
1385 <div class="event-examples">
1386 <h4>Code examples</h4>
1387 <dl class="event-examples-list">
1388
1389<dt>
1390 Supply a callback function to handle the <code>stop</code> event as an init option.
1391</dt>
1392<dd>
1393<pre><code>$( &quot;.selector&quot; ).draggable({
1394 stop: function(event, ui) { ... }
1395});</code></pre>
1396</dd>
1397
1398
1399<dt>
1400 Bind to the <code>stop</code> event by type: <code>dragstop</code>.
1401</dt>
1402<dd>
1403<pre><code>$( &quot;.selector&quot; ).bind( &quot;dragstop&quot;, function(event, ui) {
1404 ...
1405});</code></pre>
1406</dd>
1407
1408 </dl>
1409 </div>
1410</li>
1411
1412 </ul>
1413 </div>
1414 <div id="methods">
1415 <h2 class="top-header">Methods</h2>
1416 <ul class="methods-list">
1417
1418<li class="method" id="method-destroy">
1419 <div class="method-header">
1420 <h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
1421 <dl>
1422 <dt class="method-signature-label">Signature:</dt>
1423 <dd class="method-signature">.draggable( "destroy"
1424
1425
1426
1427
1428
1429
1430
1431)</dd>
1432 </dl>
1433 </div>
1434 <div class="method-description">
1435 <p>Remove the draggable functionality completely. This will return the element back to its pre-init state.</p>
1436 </div>
1437</li>
1438
1439
1440<li class="method" id="method-disable">
1441 <div class="method-header">
1442 <h3 class="method-name"><a href="#method-disable">disable</a></h3>
1443 <dl>
1444 <dt class="method-signature-label">Signature:</dt>
1445 <dd class="method-signature">.draggable( "disable"
1446
1447
1448
1449
1450
1451
1452
1453)</dd>
1454 </dl>
1455 </div>
1456 <div class="method-description">
1457 <p>Disable the draggable.</p>
1458 </div>
1459</li>
1460
1461
1462<li class="method" id="method-enable">
1463 <div class="method-header">
1464 <h3 class="method-name"><a href="#method-enable">enable</a></h3>
1465 <dl>
1466 <dt class="method-signature-label">Signature:</dt>
1467 <dd class="method-signature">.draggable( "enable"
1468
1469
1470
1471
1472
1473
1474
1475)</dd>
1476 </dl>
1477 </div>
1478 <div class="method-description">
1479 <p>Enable the draggable.</p>
1480 </div>
1481</li>
1482
1483
1484<li class="method" id="method-option">
1485 <div class="method-header">
1486 <h3 class="method-name"><a href="#method-option">option</a></h3>
1487 <dl>
1488 <dt class="method-signature-label">Signature:</dt>
1489 <dd class="method-signature">.draggable( "option"
1490
1491, optionName
1492
1493, <span class="optional">[</span>value<span class="optional">] </span>
1494
1495
1496
1497)</dd>
1498 </dl>
1499 </div>
1500 <div class="method-description">
1501 <p>Get or set any draggable option. If no value is specified, will act as a getter.</p>
1502 </div>
1503</li>
1504
1505
1506<li class="method" id="method-option">
1507 <div class="method-header">
1508 <h3 class="method-name"><a href="#method-option">option</a></h3>
1509 <dl>
1510 <dt class="method-signature-label">Signature:</dt>
1511 <dd class="method-signature">.draggable( "option"
1512
1513, options
1514
1515
1516
1517
1518
1519)</dd>
1520 </dl>
1521 </div>
1522 <div class="method-description">
1523 <p>Set multiple draggable options at once by providing an options object.</p>
1524 </div>
1525</li>
1526
1527
1528<li class="method" id="method-widget">
1529 <div class="method-header">
1530 <h3 class="method-name"><a href="#method-widget">widget</a></h3>
1531 <dl>
1532 <dt class="method-signature-label">Signature:</dt>
1533 <dd class="method-signature">.draggable( "widget"
1534
1535
1536
1537
1538
1539
1540
1541)</dd>
1542 </dl>
1543 </div>
1544 <div class="method-description">
1545 <p>Returns the .ui-draggable element.</p>
1546 </div>
1547</li>
1548
1549
1550 </ul>
1551 </div>
1552 <div id="theming">
1553 <h2 class="top-header">Theming</h2>
1554 <p>The jQuery UI Draggable 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.
1555</p>
1556 <p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.draggable.css stylesheet that can be modified. These classes are highlighed in bold below.
1557</p>
1558
1559 <h3>Sample markup with jQuery UI CSS Framework classes</h3>
1560 &lt;div class=&quot;<strong>ui-draggable</strong>&quot;&gt;&lt;/div&gt;
1561 <p class="theme-note">
1562 <strong>
1563 Note: This is a sample of markup generated by the draggable plugin, not markup you should use to create a draggable. The only markup needed for that is &lt;div&gt;&lt;/div&gt;.
1564 </strong>
1565 </p>
1566
1567 </div>
1568</div>
1569
1570</p><!--
1571Pre-expand include size: 61392 bytes
1572Post-expand include size: 107565 bytes
1573Template argument size: 58710 bytes
1574Maximum: 2097152 bytes
1575-->
1576
1577<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3768-1!1!0!!en!2 and timestamp 20110801235548 -->
Note: See TracBrowser for help on using the repository browser.