-
Notifications
You must be signed in to change notification settings - Fork 21
appendTo
Karl edited this page Nov 7, 2017
·
4 revisions
Defines the container to append the lasso to.
You can pass either a CSS3 selector string or a nod reference.
It's best to define the container as the closest ancestor to the items as possible and not have any other interactive elements (buttons, inputs, etc) within it as interacting with them will unselect the selectable items.
The container can be updated dynamically with the setContainer()
method.
new Selectable({
appendTo: "#container"
});
// or
new Selectable({
appendTo: document.getElementById("container")
});