Skip to content

Commit

Permalink
[marcojetson#2] Updated README to reflect change
Browse files Browse the repository at this point in the history
  • Loading branch information
therebelrobot committed Aug 31, 2015
1 parent f8ed066 commit abffa03
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ t.getCandidates = function (callback) {
### Min length and limit

```javascript
var opts = {
minLength: 1,
limit:false
}

var t = new TypeAhead(document.getElementById('my-control'), [
'Asia', 'Africa', 'Europe', 'North America', 'South America', 'Oceania'
]);

t.minLength = 1; // suggest on first letter
t.limit = false; // no limit
], opts);
```

### Use objects instead of strings
Expand Down

0 comments on commit abffa03

Please sign in to comment.