This repository was archived by the owner on Jul 10, 2025. It is now read-only.
  
  
  - 
                Notifications
    You must be signed in to change notification settings 
- Fork 21
filter
        Karl edited this page Sep 26, 2018 
        ·
        9 revisions
      
    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 ofHTMLCollection/NodeList
new Selectable({
    filter: "li"
});
// or
new Selectable({
    filter: document.querySelectorAll("li")
});