Web Development with jQuery®

(Elliott) #1

(^572) ❘ APPENDIX L SELECTABLE
unselected
bind('selectableunselected')
on('selectableunselected')
This function is executed at the end of
a select operation (when the mouse
button has been released), for each
element removed from the selection.
The element removed from the
selection is available in the ui
argument as ui.unselected. The
this keyword refers to the parent
selectable element.
function
(event, ui)
unselecting
bind('selectableunselecting')
on('selectableunselecting')
This function is executed during a
select operation (while the selection
box is being drawn). Selected
elements are available in the ui argu-
ment as ui.unselecting. The this
keyword refers to the parent
selectable element.
function
(event, ui)
NOTES
In the ui argument of each of the callback functions documented here, the parent selectable element
is also available as ui.selectable.
The Selectable plugin currently does not provide a way to customize the box being drawn—for
example, by adding a class name to it via a Selectable option. Despite this limitation, you do have
the ability to customize the selection box, and you can do that by adding a rule to your style sheet
that references the selector, div.ui-selectable-helper.
(continued)
http://www.it-ebooks.info

Free download pdf