filter


Type: {String|Object}

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

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

// or

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

Last updated