samsonos / js_searchfilter
Installs: 59
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- samsonos/js_core: dev-master
This package is not auto-updated.
Last update: 2024-12-21 18:09:20 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
keyup
action. This function can take 2 parameters: input field object and list of filtered objects.
Developed by SamsonOS