Limit number suggestions display in typeahead.js
You should use a combination of limit
and minLength
. limit
is the max number of suggestions that will be displayed for a given query (defaults to 5
) and minLength
is the minimum number of characters a query needs before suggestions start to get rendered (defaults to 0
).
The default limit is 5, you can set the "limit" option to what you want.
Read the doc ;-)