#Fastsearch
Lightweight fast search / autocomplete plugin based on jQuery
##Basic usage
$('input.fastsearch').fastsearch();
$('input.fastsearch').fastsearch({
'noResultsText': 'No results found',
'onItemCreate': function($item, model, fastsearchApi){
$item.append(model.subtitle);
}
});
##Defaults / options
$.fastsearch.defaults = {
wrapSelector: 'form',
url: null,
responseType: 'JSON',
preventSubmit: false,
resultsContClass: 'fs_results',
resultsOpenedClass: 'fsr_opened',
groupClass: 'fs_group',
itemClass: 'fs_result_item',
groupTitleClass: 'fs_group_title',
loadingClass: 'loading',
noResultsClass: 'fs_no_results',
focusedItemClass: 'focused',
typeTimeout: 140,
minQueryLength: 2,
template: null,
mouseEvents: !('ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0),
responseFormat: {
url: 'url',
html: 'html',
label: 'label',
groupCaption: 'caption',
groupItems: 'items'
},
fillInputId: true,
inputIdName: null,
apiInputName: null,
noResultsText: 'No results found',
onItemSelect: 'follow',
parseResponse: null,
onResultsCreate: null,
onGroupCreate: null,
onItemCreate: null
};