add

Fires when an element is added to the instance.


The callback has a single argument which returns a reference to the new item.

selectable.on("add", function(item) {
    // Do something when a new item is added to the instance
});

Last updated