Skip to content

Releases: anovi/selectonic

v0.6.0

19 Jul 17:14
Compare
Choose a tag to compare

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

28 Jun 15:09
Compare
Choose a tag to compare

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

28 Jun 13:01
Compare
Choose a tag to compare

Changed to react only to left mouse button.

v0.4.3

28 Jun 11:52
Compare
Choose a tag to compare

v0.4.0

12 Jan 19:13
Compare
Choose a tag to compare

Public methods:

  • scroll method added;
  • getFocus renamed to focus 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 like hybrid from event 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

30 Dec 22:29
Compare
Choose a tag to compare
  • PageUp and PageDown added;
  • keyboardMode option added – toggle value of that option lets move only focus by keyboard and select/unselect items by pressing space;
  • Range selection mechanics by shift+key has changed;
  • Added indexOf for IE;
  • Many other internal changes.

v0.2.3

27 Dec 18:26
Compare
Choose a tag to compare
  • Refactoring;
  • Added tests for callbacks;
  • Fix a couple discrepancies.

Refactoring

24 Dec 19:36
Compare
Choose a tag to compare

Refactoring some internal functions.