All Projects → redlab → bootstrap-ext

redlab / bootstrap-ext

Licence: other
extensions to bootstrap

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to bootstrap-ext

Autosuggest Trie
Minimalistic trie implementation for autosuggest and autocomplete components
Stars: ✭ 22 (+22.22%)
Mutual labels:  typeahead
Autosuggest Highlight
Utilities for highlighting text in autosuggest and autocomplete components
Stars: ✭ 176 (+877.78%)
Mutual labels:  typeahead
bootstrap-5-autocomplete
autocomplete/typeahead js plugin for bootstrap v5
Stars: ✭ 79 (+338.89%)
Mutual labels:  typeahead
Ng Bootstrap
Angular powered Bootstrap
Stars: ✭ 7,872 (+43633.33%)
Mutual labels:  typeahead
React Autocomplete Hint
A React component for Autocomplete Hint.
Stars: ✭ 131 (+627.78%)
Mutual labels:  typeahead
Ng Select
⭐ Native angular select component
Stars: ✭ 2,781 (+15350%)
Mutual labels:  typeahead
React Bootstrap Typeahead
React typeahead with Bootstrap styling
Stars: ✭ 773 (+4194.44%)
Mutual labels:  typeahead
react-thailand-address-typeahead
jquery.Thailand.js in React
Stars: ✭ 78 (+333.33%)
Mutual labels:  typeahead
React Autowhatever
Accessible rendering layer for Autosuggest and Autocomplete components
Stars: ✭ 146 (+711.11%)
Mutual labels:  typeahead
react-native-autocomplete-dropdown
Dropdown Item picker with search and autocomplete (typeahead) functionality for react native
Stars: ✭ 87 (+383.33%)
Mutual labels:  typeahead
Autocomplete
🔮 Fast and full-featured autocomplete library
Stars: ✭ 1,268 (+6944.44%)
Mutual labels:  typeahead
Draft Js Typeahead
Typeaheads for Draft.js inspired by Facebook.com 🔭
Stars: ✭ 117 (+550%)
Mutual labels:  typeahead
Autocomplete
Blazing fast and lightweight autocomplete widget without dependencies. Only 1KB gzipped. Demo:
Stars: ✭ 244 (+1255.56%)
Mutual labels:  typeahead
Bootstrap 4 Autocomplete
A simple autocomplete/typeahead for Bootstrap 4 and jQuery
Stars: ✭ 36 (+100%)
Mutual labels:  typeahead
indicium
🔎 A simple in-memory search for collections and key-value stores.
Stars: ✭ 41 (+127.78%)
Mutual labels:  typeahead
Reactjs Tmdb App
Responsive React 'The Movie Database' (TMDb) App
Stars: ✭ 830 (+4511.11%)
Mutual labels:  typeahead
Typeahead
Typeahead control for Blazor applications
Stars: ✭ 226 (+1155.56%)
Mutual labels:  typeahead
react-abstract-autocomplete
Bring-Your-Own-UI autocomplete / mentions component for React.
Stars: ✭ 15 (-16.67%)
Mutual labels:  typeahead
Aurelia-Bootstrap-Plugins
Aurelia-Bootstrap-Plugins are Custom Elements to bridge with a set of 3rd party Bootstrap addons
Stars: ✭ 45 (+150%)
Mutual labels:  typeahead
react-power-select
A highly composable & reusable select/autocomplete components
Stars: ✭ 63 (+250%)
Mutual labels:  typeahead

bootstrap-ext

Typeaheadmap

A make over of bootstraps typeahead that supports an array of objects, a listener function hook to receive selected data, and a customizable displayer function. See an example at src/demo/typeaheadmap or a live example. The Javascript and CSS file are at src/js/typaheadmap

Consider an example of the cities where the arrayOfObjects is a an array containing objects with cities and postalcodes

{ "code":"9000", "city":"Gent"}

the javascript for the postalcode inputbox would be like

$("#postalcodes").typeaheadmap({ "source":arrayOfObjects, "key": "code", "value": "city"})

for the citynames inputbox.

$("#cities").typeaheadmap({ "source":arrayOfObjects, "key": "city", "value": "code"})

To allow either input to automagically show the correct code or city there is an option to add listener function. The listener is called on change of the typeaheadmap. Then it becomes

 $("#cities").typeaheadmap({ "source":arrayOfObjects, 
    "key": "city", 
    "value": "code", 
    "listener": function(k, v) {
	$("#postalcodes").val(v)
	}
})

Optional:

  • add 'notfound' to the options map. If notfound is set as an Array of objects with the same structure as those in the "source" parameter, this array is used when autocomplete did not return any results.
"notfound": new Array({'k' :"Capital Does Not Exist?", 'v': "",'d': "You typed something that is not in the list"})
  • set 'items' as int to set the maximum size of the displayed results
  • add 'displayer' to customize the output
"displayer": function(that, item, highlighted) {
    if (item[that.value] != "") {
	    return highlighted;			
    } else {
    return highlighted + ' (' + item[that.value] + ' )' 
    }
}
  • set the source as an object array or a function (function receives the current input from box and the process method to which you pass the object array.
  • use the source with an ajax request
"source" : function(q, process) { 
     $.ajax({url: yourfetchurl+'?q='+q, 
               dataType: 'json',
               success: function(data) { process(fetcheddata)  }
     })
},
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].