Skip to content

Commit

Permalink
Merge pull request #332 from wpapper/patch-1
Browse files Browse the repository at this point in the history
Mention issue with data attributes and jQuery
  • Loading branch information
bassjobsen authored Jan 15, 2018
2 parents 62031c4 + ccf0b02 commit c4d9b9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ $input.change(function() {

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-`, as in `data-source=""`.

If you are using jQuery in your application, note that camel case attributes such as `data-minLength` should be formatted as `data-min-length`. If you want more explanation, see [this issue](https://github.com/bassjobsen/Bootstrap-3-Typeahead/issues/28).

|Name|Type|Default|Description|
|--- |--- |--- |--- |
|source|array, function|`[]`|The data source to query against. May be an array of strings, an array of JSON object with a name property or a function. The function accepts two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument.|
Expand Down

0 comments on commit c4d9b9e

Please sign in to comment.