This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="the-basics"> | |
<input class="typeahead" type="text" placeholder="States of USA"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose publish [ '.' ] | |
5 verbose cache add [ '.', null ] | |
6 verbose cache add name=undefined spec="." args=[".",null] | |
7 verbose parsed url { protocol: null, | |
7 verbose parsed url slashes: null, | |
7 verbose parsed url auth: null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="example-numbers"> | |
<input class="typeahead" type="text" placeholder="numbers (one through ten)"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="example-exclaimation"> | |
<input class="typeahead" type="text" placeholder="try it out"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="example-films"> | |
<input class="typeahead" type="text" placeholder="best picture winner"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="example-sports"> | |
<input class="typeahead" type="text" placeholder="NBA and NHL teams"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.example-arabic .tt-dropdown-menu { | |
text-align: right; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="example-twitter-oss"> | |
<input class="typeahead" type="text" placeholder="open source projects by Twitter"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="example-countries"> | |
<input class="typeahead" type="text" placeholder="countries"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simple | |
// ------ | |
$('.typeahead').typeahead({ | |
autoselect: true, | |
hightlight: true, | |
hint: true | |
}).typeahead('add', { | |
name: 'films', | |
source: { |