Selectable Class

The jQuery UI Selectable plugin allows for elements to be selected by dragging a box (sometimes called a lasso) with the mouse over the elements. Also, elements can be selected by click or drag while holding the Ctrl/Meta key, allowing for multiple (non-contiguous) selections.

Namespace: SharpKit.jQuery.UI.Controls

Constructors

Name Description
Selectable(JsString, SelectableOptions) Creates a new instance of Selectable
Selectable(JsString) Creates a new instance of Selectable

Properties

Name Description
autoRefresh This determines whether to refresh (recalculate) the position and size of each selectee at the beginning of each select operation. If you have many many items, you may want to set this to false and call the refresh method manually. Default: true
cancel Prevents selecting if you start on elements matching the selector. Default: ':input,option'
delay Time in milliseconds to define when the selecting should start. It helps preventing unwanted selections when clicking on an element. Default: 0
distance Tolerance, in pixels, for when selecting should start. If specified, selecting will not start until after mouse is dragged beyond distance. Default: 0
filter The matching child elements will be made selectees (able to be selected). Default: '*'
selected This event is triggered at the end of the select operation, on each element added to the selection. Default: null
selecting This event is triggered during the select operation, on each element added to the selection. Default: null
start This event is triggered at the beginning of the select operation. Default: null
stop This event is triggered at the end of the select operation. Default: null
tolerance Possible values: 'touch', 'fit'. fit: draggable overlaps the droppable entirely touch: draggable overlaps the droppable any amount Default: 'touch'
unselected This event is triggered at the end of the select operation, on each element removed from the selection. Default: null
unselecting This event is triggered during the select operation, on each element removed from the selection. Default: null
© Copyright 2005-2011 SharpKit. All rights reserved.