Skip to content
Karl edited this page Sep 26, 2018 · 9 revisions

Type Mixed

Default ".ui-selectable"

Defines the element nodes that are selectable.


By default an instance will search for elements with the ".ui-selectable" class, but you can tell it to look for other elements by setting the filter option.

One of the following can be passed as a filter:

  • String - a CSS3 selector string
  • Array - an array of nodes or an instance of HTMLCollection / NodeList

Examples

new Selectable({
    filter: "li"
});

// or

new Selectable({
    filter: document.querySelectorAll("li")
});
Clone this wiki locally