jquery-selection-organizer

A jQuery plugin that organizes selected elements into one space

Using default options:

$(".unordered-list").selectionOrganizer();
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

Using custom options:

$(".checkbox-list").selectionOrganizer({
  selector: ".child",
  classSelected: "selected",
  showAnimation: false,
  sendToEnd: true,
  callback: function($target) {
    var isSelected = $target.attr("data-selection-organizer-selected") == "true";
    $target.find("input").prop("checked", isSelected);
  }
});

Changing options after initialization:

var boxListOrganizer = $(".box-list").selectionOrganizer({
  selector: ".child",
  classSelected: "selected",
  sendToEnd: true,
  callback : function(target) {
    $(".span-selected-box-number").text($(target).text());
  }
});
boxListOrganizer.settings.animationProperties = {width: "toggle"};
boxListOrganizer.settings.animationDuration = 200;
1
2
3
4
5
6
7
8
9
10

Selected: Box #