list input search.
Install with component(1):
$ component install yields/search
var input = query('input');
var one = query('ul.one');
var two = query('ul.two');
var search = new InputSearch(input);
// add lists
search
.add(one)
.add(two);Initialize SearchInput with <input>.
Bind internal events.
Unbind internal events.
Add a NodeList or Element that has .children to search in.
Cache elements, the method is called after you add Element or NodeList.
Change the algorithm to fn(str, term), by default a naive index(str, term) is used.
Search term, the method will use fn(str, term) to add / remove .hide or .show classes.
MIT