【文件属性】:
文件名称:bootstrap-5-autocomplete:用于bootstrap v5的autocompletetypeahead js插件
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-01 06:48:51
bootstrap autocomplete typeahead bootstrap5 HTML
bootstrap-5-自动完成
这是Bootstrap v5的的重写。
例子
const ac = new Autocomplete ( field , {
data : [ { label : "I'm a label" , value : 42 } ] ,
maximumItems : 5 ,
onSelectItem : ( { label , value } ) => {
console . log ( "user selected:" , label , value ) ;
}
} ) ;
// later, when you need to change the dataset
ac . setData ( [
{ label : 'New York JFK' , value : 'JFK' } ,
{ labe
【文件预览】:
bootstrap-5-autocomplete-master
----autocomplete.js(4KB)
----example()
--------example.html(22KB)
----README.md(2KB)