File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,17 @@ When configuring `remote`, the following options are available.
297297 you to transform the remote response before the Bloodhound instance operates
298298 on it. Defaults to the [ identity function] .
299299
300+ * ` transport ` – A function with the signature ` transport(options, onSuccess, onError) `
301+ that allows you to specify a custom transport:
302+ ``` javascript
303+ transport : function (options , onSuccess , onError ) {
304+ // Modify the options or replace the next line
305+ $ .ajax (options)
306+ .done (function (data , textStatus , request ) { onSuccess (data); })
307+ .fail (function (request , textStatus , errorThrown ) { onError (errorThrown); });
308+ }
309+ ```
310+
300311<!-- section links -->
301312
302313[ identity function ] : http://en.wikipedia.org/wiki/Identity_function
You can’t perform that action at this time.
0 commit comments