autocomplete
Exposes:
KDAutoComplete
KDAutoCompleteController
KDAutoCompletedItem
KDAutoCompleteFetchingItem
KDAutoCompleteListView
KDAutoCompleteListItemView
KDAutoCompleteNothingFoundItem
KDAutocompleteUnselecteableItem
MultipleInputListView
KDMultipleInputView
MultipleListItemView
NoAutocompleteInputView
NoAutocompleteMultipleListView
KDSimpleAutocomplete
## API
KDAutoComplete
extends KDInputView
Instance Methods
mouseDown()
setDomElement()
setDomId()
setDefaultValue(value)
$input()
getValue()
setValue(value)
bindEvents()
blur(event)
focus(event)
keyDown(event)
getLeftOffset()
setPlaceholder(value)
setFocus()
setBlur()
KDAutoCompleteController(options, data)
extends KDViewController
Instance Methods
reset()
loadView(mainView)
setDefaultValue(defaultItems)
keyDownOnInputView(event)
getPrefix()
createDropDown(data)
hideDropdown()
showDropdown()
refreshDropDown(data)
submitAutoComplete(item, data)
getAutoCompletedItemParent()
isItemAlreadySelected(data)
addHiddenInputItem(name, value)
removeHiddenInputItem(name)
addSelectedItem(name, data)
getSelectedItemData()
addSelectedItemData(data)
removeSelectedItemData(data)
getCollectionPath()
addSuggestion(title)
addItemToSubmitQueue(item, data)
removeFromSubmitQueue(item, data)
appendAutoCompletedItem()
updateDropdownContents()
keyUpOnInputView(event)
fetch(callback)
showFetching()
getNoItemFoundView(suggestion)
showNoDataFound()
destroy()
KDAutoCompleteFetchingItem(options, data)
extends KDAutocompleteUnselecteableItem
Instance Methods
KDAutoCompleteListItemView(options, data)
extends KDListItemView
Instance Methods
viewAppended()
mouseEnter()
mouseLeave()
makeItemActive()
makeItemInactive()
click(event)
partial()
KDAutoCompleteListView(options, data)
extends KDListView
Instance Methods
goDown()
goUp()
getActiveItem()
setActiveItem(target)
KDAutoCompleteNothingFoundItem(options, data)
extends KDAutocompleteUnselecteableItem
Instance Methods
KDAutoCompletedItem(options, data)
extends KDView
Instance Methods
click(event)
viewAppended()
partial(data)
KDAutocompleteUnselecteableItem
extends KDListItemView
Instance Methods
click()
keyUp()
keyDown()
makeItemActive()
destroy()
MultipleInputListView
extends KDListView
Instance Methods
setDomElement()
addItems(items)
removeListItem(instance)
KDMultipleInputView(options)
extends KDSimpleAutocomplete
Instance Methods
focus(pubInst, event)
viewAppended()
$input()
getValues()
addItemToSubmitQueue()
keyUp(event)
inputRemoveValue(value)
clear()
inputAddCurrentValue()
click(event)
setDomId()
setDomElement()
Private Methods
MultipleListItemView
extends KDListItemView
Instance Methods
click(event)
setDomElement()
partial()
NoAutocompleteInputView
extends KDMultipleInputView
Instance Methods
keyUp(event)
setDomElement(cssClass)
addItemToSubmitQueue(item)
NoAutocompleteMultipleListView(options, data)
extends KDView
Instance Methods
KDSimpleAutocomplete
extends KDAutoComplete
Instance Methods
addItemToSubmitQueue(item)
keyUp(event)
showNoDataFound()
License
The MIT License (MIT)
Copyright (c) 2014 Koding hello@koding.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.