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 @@ -272,6 +272,17 @@ When configuring `remote`, the following options are available.
272272 you to transform the remote response before the Bloodhound instance operates
273273 on it. Defaults to the [ identity function] .
274274
275+ * ` transport ` – A function with the signature ` transport(options, onSuccess, onError) `
276+ that allows you to specify a custom transport:
277+ ``` javascript
278+ transport : function (options , onSuccess , onError ) {
279+ // Modify the options or replace the next line
280+ $ .ajax (options)
281+ .done (function (data , textStatus , request ) { onSuccess (data); })
282+ .fail (function (request , textStatus , errorThrown ) { onError (errorThrown); });
283+ }
284+ ```
285+
275286<!-- section links -->
276287
277288[ identity function ] : http://en.wikipedia.org/wiki/Identity_function
You can’t perform that action at this time.
0 commit comments