Releases: anovi/selectonic
Releases · anovi/selectonic
v0.6.0
Redesigned logic of select
method and added unselect
method:
select
method only selects passed items but don't clear selection from others items, if they are;unselect
method unselects passed items or all items if no one has been passed;- both methods do not change focused element — this is developer's decision, what to do with it.
Fixed bug: list blurs if mousedown has happened on one item but mouseup on another.
v0.5.0
Selectonic is now compatible with Zepto library.
Changes:
- Made default options accessible from outside by
$.fn.selectonic.defaults
. Example:
//now lists by default will be selectable by keyboard
$.fn.selectonic.keyboard = true;
- Fixed bug when selectable list do not blurred with mouseup mode.
- Fixed bug in IE with redundant comma.
v0.4.4
v0.4.3
v0.4.0
Public methods:
scroll
method added;getFocus
renamed tofocus
and now it sets focus if pass element as argument;select
method was changed to be called with "select" string as first argument and element as second argument.
Options:
focusOnhover
– set focus by mousemove on items;event
option removed;mouseMode
option changed:select
value removed;standard
is now default value – it’s likehybrid
fromevent
option, but it reacts to mousedown only in multi/range selection; in single selection it reacts to click event;mouseup
value added – it useful for custom implementation of select control.
Other
- Examples were added;
- Done some optimization.
v0.3.0
- PageUp and PageDown added;
keyboardMode
option added –toggle
value of that option lets move only focus by keyboard and select/unselect items by pressingspace
;- Range selection mechanics by
shift
+key has changed; - Added indexOf for IE;
- Many other internal changes.
v0.2.3
Refactoring
Refactoring some internal functions.