Skip to content

Commit 8b1b394

Browse files
committed
Draggable: Document relationship between appendTo and helper options
Fixes jquerygh-224 Closes jquerygh-232
1 parent 725f978 commit 8b1b394

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entries/draggable.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
<desc>If set to <code>false</code>, will prevent the <code>ui-draggable</code> class from being added. This may be desired as a performance optimization when calling <code>.draggable()</code> on hundreds of elements.</desc>
1919
</option>
2020
<option name="appendTo" default='"parent"' example-value='"body"'>
21-
<desc>Which element the draggable helper should be appended to while dragging.</desc>
21+
<desc>
22+
<p>Which element the draggable helper should be appended to while dragging.</p>
23+
<div class="warning"><strong>Note:</strong> The <code>appendTo</code> option only works when the <a href="#option-helper"><code>helper</code></a> option is set to not use the original element.</div>
24+
</desc>
2225
<type name="jQuery">
2326
<desc>A jQuery object containing the element to append the helper to.</desc>
2427
</type>

0 commit comments

Comments
 (0)