Skip to content

Releases: Mobius1/Selectable

v0.14.1

05 Dec 13:53
Compare
Choose a tag to compare

Changes

Changed event names:

  • selectable.init => init
  • selectable.update => update
  • selectable.refresh => refresh
  • selectable.start => start
  • selectable.drag => drag
  • selectable.end => end
  • selectable.select => selecteditem
  • selectable.deselect => deselecteditem
  • selectable.state => state
  • selectable.enable => enable
  • selectable.disable => disable

The old event names are deprecated and will be removed in v0.16.0.

Added events:

  • selectable.addeditem - fires when an item is added to the instance.
  • selectable.removeditem - fires when an item is removed from the instance.

v0.14.0

01 Dec 20:05
Compare
Choose a tag to compare

Breaking Changes

  • recalculate() method renamed to refresh().
  • unselect() method renamed to deselect().
  • selectable.recalculate event renamed to selectable.refresh.
  • Classname ui-unselecting changed to ui-deselecting
  • item.unselecting state changed to item.deselecting
  • Default autoScroll.increment reduced to 10 to slow autoscrolling down.

New Additions

  • Added state() method. See Using States
  • New keyboard commands:
    • ctrl + a - selects all items
    • ctrl + z - undo last selection
    • ctrl + y - redo last selection

Fixes

  • Prevent lasso overflowing container in both x and y direction when using a scrollable container.

v0.13.4

29 Nov 19:06
Compare
Choose a tag to compare

Fixes

  • Make default config local instead of global
  • Allow passing of new config to init() method
  • Convert ES6 for...of to old for loop for older browsers

v0.13.3

07 Nov 17:28
Compare
Choose a tag to compare

Changes

  • autoScroll.threshold now defaults to 0

Fixes

  • Fix bug when removing multiple items with remove()

v0.13.2

07 Nov 12:06
Compare
Choose a tag to compare

Fixes

  • ignore option now prevents decendants triggering selection. (e.g. option elements would previously trigger selection if select was set in the ignore option).

v0.13.1

31 Oct 20:49
Compare
Choose a tag to compare

Hotfix

v0.13.0

31 Oct 20:33
Compare
Choose a tag to compare
v0.13.0 Pre-release
Pre-release

Changes

Added invert() method (inverts current selection).
Autoscroll now works when no appendTo container is defined, i.e. with document.body.

Fixes

Stop lasso causing container overflow.

v0.12.3

30 Oct 21:35
Compare
Choose a tag to compare
v0.12.3 Pre-release
Pre-release

Fixes

Auto scroll bug.

Changes

autoScroll.offset changed to autoScroll.threshold

v0.12.2

30 Oct 07:33
Compare
Choose a tag to compare
v0.12.2 Pre-release
Pre-release

Fixes

Fixed broken touch support

v0.12.1

29 Oct 21:35
Compare
Choose a tag to compare
v0.12.1 Pre-release
Pre-release

Fixes

Incorrect lasso positioning and selection when page scrolled.