Typeahead
Tom Bertrand
Wersja: 1.5.3
Numer wersji wtyczki
Dokumentacja
Sprawdź wszystkie opcje jakie oferuje plugin
Github
Repozytorium Github
Wersja jQuery: jquery >=1.7.2
Wersja jQuery z którą współpracuje plugin
Licencja: MIT
Licencja
Strona wtyczki
Oficjalna witryna wtyczki
Zobacz więcej
Typeahead
Autor | Tom Bertrand |
Wersja: | 1.5.3 |
Dokumentacja: | Dokumentacja |
Github: | Github |
Wersja jQuery: | jquery >=1.7.2 |
Licencja: | MIT |
Strona wtyczki: | Strona wtyczki |
Zgłoś błąd: | Zgłoś błąd |
Data opublikowania: | 2014-09-16 |
Historia wersji
Wersja | Data publikacji |
---|---|
1.5.3 | 2014-09-16 |
1.5.2 | 2014-09-16 |
1.5.1 | 2014-09-15 |
1.5.0 | 2014-09-14 |
1.4.0 | 2014-09-11 |
1.3.0 | 2014-09-10 |
1.2.3 | 2014-09-10 |
1.2.2 | 2014-09-05 |
1.2.0 | 2014-09-02 |
1.1.0 | 2014-09-01 |
1.0.0 | 2014-08-30 |
0.1.7 | 2014-08-29 |
0.1.6 | 2014-08-28 |
0.1.5 | 2014-08-27 |
0.1.4 | 2014-08-26 |
0.1.3 | 2014-08-26 |
0.1.2 | 2014-08-25 |
0.1.0 | 2014-08-22 |
Tagi
Instalacja
- Biblioteki
- HTML
- JS
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<link href="jquery.typeahead.min.css" rel="stylesheet" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="jquery.typeahead.min.js"></script>
<form id="form-country_v1" name="form-country_v1">
<div class="typeahead-container">
<div class="typeahead-field">
<span class="typeahead-query">
<input id="country_v1-query" name="country_v1[query]" placeholder="Search" autocomplete="off" type="search">
</span>
<span class="typeahead-button">
<button type="submit">
<i class="typeahead-search-icon"></i>
</button>
</span>
</div>
</div>
</form>
$('#country_v1-query').typeahead({
order: "desc",
source: {
data: [
"Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda",
"Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh",
"Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia",
"Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burma",
"Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad",
"Chile", "China", "Colombia", "Comoros", "Congo, Democratic Republic", "Congo, Republic of the",
"Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti",
"Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador",
"Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon",
"Gambia", "Georgia", "Germany", "Ghana", "Greece", "Greenland", "Grenada", "Guatemala", "Guinea",
"Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hong Kong", "Hungary", "Iceland", "India",
"Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan",
"Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos",
"Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg",
"Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands",
"Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Mongolia", "Morocco", "Monaco",
"Mozambique", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger",
"Nigeria", "Norway", "Oman", "Pakistan", "Panama", "Papua New Guinea", "Paraguay", "Peru",
"Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Samoa", "San Marino",
"Sao Tome", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone",
"Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain",
"Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan",
"Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey",
"Turkmenistan", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States",
"Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"
]
},
callback: {
onInit: function (node) {
console.log('Typeahead Initiated on ' + node.selector);
}
}
});