Skip to content

Commit 054fdca

Browse files
committed
Draggable: Document the function version of the revert option. Fixes #167.
1 parent 1747920 commit 054fdca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entries/draggable.xml

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@
112112
<type name="String">
113113
<desc>If set to <code>"invalid"</code>, revert will only occur if the draggable has not been dropped on a droppable. For <code>"valid"</code>, it's the other way around.</desc>
114114
</type>
115+
<type name="Function">
116+
<desc>A function to determine whether the element should revert to its start position. The function must return <code>true</code> to revert the element.</desc>
117+
</type>
115118
</option>
116119
<option name="revertDuration" type="Number" default="500" example-value="200">
117120
<desc>The duration of the revert animation, in milliseconds. Ignored if the <a href="#option-revert"><code>revert</code></a> option is <code>false</code>.</desc>

0 commit comments

Comments
 (0)