Is it possible to fire a call for multiples of 3 in typeahead.js

31 Views Asked by At

typeahead.js jQuery plugin fires call for every letter or we can give the minLength for suggestions rendering. I want to show the suggestions only for multiples of 3

1

There are 1 best solutions below

1
kblau On

https://twitter.github.io/typeahead.js/examples/

$('#the-basics .typeahead').typeahead({
                hint: true,
                highlight: true,
                minLength: 3
            },
                {
                    name: 'items',
                    source: substringMatcher(items)
                });