filter

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 instances of HTMLCollection and NodeList

Examples

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

// or

new Selectable({
    filter: document.querySelectorAll("li")
});