Web Development with jQuery®

(Elliott) #1

Appendix J (^) ❘ 557
ui.position The current position of the helper as an
object literal relative to the offset element.
Object {top, left}
ui.absolutePosition The current absolute position of the helper
relative to the page.
Object {top, left}
DROPPABLE OPTIONS
OPTION DESCRIPTION TYPE
accept If a function is provided, the function is executed
each time a draggable is dropped on a
droppable. This lets you fi lter which
elements can be dropped. The function should
return true if the dragged element should be
accepted and false if it should not.
If a selector is provided, draggables that match
the specifi ed selector will be accepted by the
droppable.
Default value: "*"
function(draggable)
Selector
activeClass A class name that is added to the droppable
element while a draggable element is being
dragged.
Default value: false
String
Boolean
addClasses If the value provided is set to false, this feature
prevents the ui-droppable class name from
being added to droppable elements.
Default value: true
Boolean
Disabled Disables the droppable element if the value is
set to true.
Default value: false
Boolean
greedy If true, this property prevents event
propagation on nested droppables.
Default value: false
Boolean
hoverClass A class name that is added to the droppable
element while a draggable element is being
dragged over the droppable element.
Default value: false
String,
Boolean
continues
http://www.it-ebooks.info

Free download pdf