Skip to content

Commit 1408ded

Browse files
committed
Mouse: Added option examples.
1 parent 7024dea commit 1408ded

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entries/mouse.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
<p>Similar to <a href="/jQuery.Widget#jQuery-Widget2"><code>jQuery.Widget</code></a>, the mouse interaction is not intended to be used directly. It is purely a base layer for other widgets to inherit from. This page only documents what is added to <code>jQuery.Widget</code>, but it does include internal methods that are not intended to be overwritten. The intended public API is <a href="#method-_mouseStart"><code>_mouseStart()</code></a>, <a href="#method-_mouseDrag"><code>_mouseDrag()</code></a>, <a href="#method-_mouseStop"><code>_mouseStop()</code></a>, and <a href="#method-_mouseCapture"><code>_mouseCapture()</code></a>.</p>
77
</longdesc>
88
<options>
9-
<option name="cancel" type="Selector" default='"input,textarea,button,select,option"'>
9+
<option name="cancel" type="Selector" default='"input,textarea,button,select,option"' example-value='".title"'>
1010
<desc>Prevents interactions from starting on specified elements.</desc>
1111
</option>
12-
<option name="delay" type="Number" default="0">
12+
<option name="delay" type="Number" default="0" example-value="300">
1313
<desc>Time in milliseconds after mousedown until the interaction should start. This option can be used to prevent unwanted interactions when clicking on an element.</desc>
1414
</option>
15-
<option name="distance" type="Number" default="1">
15+
<option name="distance" type="Number" default="1" example-value="10">
1616
<desc>Distance in pixels after mousedown the mouse must move before the interaction should start. This option can be used to prevent unwanted interactions when clicking on an element.</desc>
1717
</option>
1818
</options>

0 commit comments

Comments
 (0)