You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ Devbridge Group accelerates software to market for enterprise clients through de
2
2
3
3
[www.devbridge.com](http://www.devbridge.com/)
4
4
5
-
#Ajax Autocomplete for jQuery
5
+
#Ajax Autocomplete for jQuery
6
6
7
7
Ajax Autocomplete for jQuery allows you to easily create
8
8
autocomplete/autosuggest boxes for text input fields.
@@ -11,13 +11,13 @@ Has no dependencies other than jQuery.
11
11
12
12
The standard jquery.autocomplete.js file is around 13KB when minified.
13
13
14
-
##API
14
+
##API
15
15
16
16
*`$(selector).autocomplete(options);`
17
17
* Sets up autocomplete for input field(s).
18
18
*`options`: An object literal which defines the settings to use for the autocomplete plugin. Available option settings listed below.
19
19
20
-
###Ajax Settings
20
+
###Ajax Settings
21
21
*`serviceUrl`: Server side URL or callback function that returns serviceUrl string. Optional if local lookup data is provided.
22
22
*`type`: Ajax request type to get suggestions. Default: `GET`.
23
23
*`dataType`: type of data returned from server. Either `text` (default), `json` or `jsonp`, which will cause the autocomplete to use jsonp. You may return a json object in your callback when using jsonp.
@@ -26,7 +26,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified.
26
26
*`deferRequestBy`: Number of miliseconds to defer Ajax request. Default: `0`.
27
27
*`ajaxSettings`: Any additional [Ajax Settings](http://api.jquery.com/jquery.ajax/#jQuery-ajax-settings) that configure the jQuery Ajax request.
28
28
29
-
###Configuration Settings
29
+
###Configuration Settings
30
30
*`noCache`: Boolean value indicating whether to cache suggestion results. Default `false`.
31
31
*`delimiter`: String or RegExp, that splits input value and takes last part to as query for suggestions.
32
32
Useful when for example you need to fill list of comma separated values.
@@ -46,7 +46,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified.
46
46
*`autoSelectFirst`: if set to `true`, first item will be selected when showing suggestions. Default value `false`.
47
47
*`onHide`: `function (container) {}` called before container will be hidden
48
48
49
-
###Presentation Settings
49
+
###Presentation Settings
50
50
*`beforeRender`: `function (container, suggestions) {}` called before displaying the suggestions. You may manipulate suggestions DOM before it is displayed.
51
51
*`formatResult`: `function (suggestion, currentValue) {}` custom function to
52
52
format suggestion entry inside suggestions container, optional.
0 commit comments