Web Development with jQuery®

(Elliott) #1

Appendix L (^) ❘ 571
tolerance Defi nes how a selection should occur.
The two options at the time of this
writing are "fit" and "touch". The
value "fit" means that the selection
box should completely contain the
item being selected before a
selection takes place. The option
"touch" means that merely coming
into contact with the item makes the
item selected.
Default value: "touch"
String
create
bind('selectablecreate')
on('selectablecreate')
This function is executed when the
selectable is created.
function
(event, ui)
selected
bind('selectableselected')
on('selectableselected')
This function is executed at the end of
a select operation (when the mouse
button has been released), on each
element added to the selection.
Selected elements are available in the
ui argument as ui.selected. The
this keyword refers to the parent
selectable element.
function
(event, ui)
selecting
bind('selectableselecting')
on('selectableselecting')
This function is executed as ele-
ments are selected during a select
operation (while the selection box
is being drawn). Selected elements
are available in the ui argument as
ui.selecting. The this
keyword refers to the parent
selectable element.
function
(event, ui)
start
bind('selectablestart')
on('selectablestart')
This function is executed at the
beginning of a select operation (when
the mouse button is fi rst pressed
down). The this keyword refers to the
parent selectable element.
function
(event, ui)
stop
bind('selectablestop')
on('selectablestop')
This function is executed at the end of
a select operation (when the mouse
button is released). The this
keyword refers to the parent select-
able element.
function
(event, ui)
continues
http://www.it-ebooks.info

Free download pdf