Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to search on specific keycode (#37)
* Add keycode in options trigger only search when keycode specified, for example { keyCode : 13 } for enter event * Add keycode in options trigger only search when keycode specified. for example using enter event : $('input#search').quicksearch('table tbody tr', { 'delay': 100, 'selector': 'th', 'stripeRows': ['odd', 'even'], 'loader': 'span.loading', 'noResults': 'tr#noresults', 'bind': 'keyup keydown', 'minValLength': 2, 'removeDiacritics': true, 'keyCode ': 13, 'onBefore': function () { console.log('on before'); }, 'onAfter': function () { console.log('on after'); }, 'onValTooSmall': function (val) { console.log('value ' + val + ' is too small'); }, 'show': function () { $(this).addClass('show'); }, 'hide': function () { $(this).removeClass('show'); } 'prepareQuery': function (val) { return new RegExp(val, "i"); }, 'testQuery': function (query, txt, _row) { return query.test(txt); } });
- Loading branch information