|
7 | 7 | </longdesc>
|
8 | 8 | <added>1.0</added>
|
9 | 9 | <options>
|
10 |
| - <option name="accept" default='"*"'> |
| 10 | + <option name="accept" default='"*"' example-value='".special"'> |
11 | 11 | <desc>Controls which draggable elements are accepted by the droppable.</desc>
|
12 | 12 | <type name="Selector">
|
13 | 13 | <desc>A selector indicating which draggable elements are accepted.</desc>
|
|
16 | 16 | <desc>A function that will be called for each draggable on the page (passed as the first argument to the function). The function must return <code>true</code> if the draggable should be accepted.</desc>
|
17 | 17 | </type>
|
18 | 18 | </option>
|
19 |
| - <option name="activeClass" type="String" default="false"> |
| 19 | + <option name="activeClass" type="String" default="false" example-value='"ui-state-highlight"'> |
20 | 20 | <desc>If specified, the class will be added to the droppable while an acceptable draggable is being dragged.</desc>
|
21 | 21 | </option>
|
22 |
| - <option name="addClasses" type="Boolean" default="true"> |
| 22 | + <option name="addClasses" type="Boolean" default="true" example-value="false"> |
23 | 23 | <desc>If set to <code>false</code>, will prevent the <code>ui-droppable</code> class from being added. This may be desired as a performance optimization when calling <code>.droppable()</code> init on hundreds of elements.</desc>
|
24 | 24 | </option>
|
25 | 25 | <xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
|
26 |
| - <option name="greedy" type="Boolean" default="false"> |
| 26 | + <option name="greedy" type="Boolean" default="false" example-value="true"> |
27 | 27 | <desc>By default, when an element is dropped on nested droppables, each droppable will receive the element. However, by setting this option to <code>true</code>, any parent droppables will not receive the element.</desc>
|
28 | 28 | </option>
|
29 |
| - <option name="hoverClass" type="String" default="false"> |
| 29 | + <option name="hoverClass" type="String" default="false" example-value='"drop-hover"'> |
30 | 30 | <desc>If specified, the class will be added to the droppable while an acceptable draggable is being hovered over the droppable.</desc>
|
31 | 31 | </option>
|
32 |
| - <option name="scope" type="String" default='"default"'> |
| 32 | + <option name="scope" type="String" default='"default"' example-value='"tasks"'> |
33 | 33 | <desc>Used to group sets of draggable and droppable items, in addition to the <a href="#option-accept"><code>accept</code></a> option. A draggable with the same scope value as a droppable will be accepted.</desc>
|
34 | 34 | </option>
|
35 |
| - <option name="tolerance" type="String" default='"intersect"'> |
| 35 | + <option name="tolerance" type="String" default='"intersect"' example-value='"fit"'> |
36 | 36 | <desc>
|
37 | 37 | Specifies which mode to use for testing whether a draggable is hovering over a droppable. Possible values:
|
38 | 38 | <ul>
|
|
0 commit comments