Remote data is only used when the data provided by local and prefetch is insufficient. In order to prevent an obscene number of requests being made to remote endpoint, typeahead.js rate-limits remote requests.
A pre-request callback. Can be used to set custom headers.
Determines whether or not the browser will cache responses.
The type of data you're expecting from the server. Defaults to json.
Transforms the response body into an array of datums.
The max number of parallel requests typeahead.js can have pending. Defaults to 6.
The function used for rate-limiting network requests. Can be either 'debounce' or 'throttle'. Defaults to 'debounce'.
The time interval in milliseconds that will be used by rateLimitFn. Defaults to 300.
Overrides the request URL. If set, no wildcard substitution will be performed on url.
Sets a timeout for requests.
A URL to make requests to when the data provided by local and prefetch is insufficient. Required.
The pattern in url that will be replaced with the user's query when a request is made. Defaults to %QUERY.