samsonos / js_searchfilter
Package info
github.com/samsonos/js_searchfilter
Language:JavaScript
pkg:composer/samsonos/js_searchfilter
dev-master
2014-09-02 10:09 UTC
Requires
- samsonos/js_core: dev-master
This package is not auto-updated.
Last update: 2026-03-15 00:05:55 UTC
README
Module gives tou an opportunity to filter specified list by value typed in input.
It has 3 parameters:
- First is to specify all elements which will be in search list.
That means you can use any selector you want, by default class
'.search-element'is used. - Second parameter is minimal typed text length to start search. Starting from this number function starts to filter, by default 2 is set.
- And the last one is to perform your own code while searching.
You can set your own function, which will be called on each
keyupaction. This function can take 2 parameters: input field object and list of filtered objects.
Developed by SamsonOS