Input type that supports autocomplete through a callback function
Members
container
style
exposes input.style
inputBox
reference to the internal input node
Functions
setCompleteDataCallBack(callbackCompleteValue)
callback function executed with the complete input value when keys are pressed
triggerAutoComplete(cSuggestions)
manually triggers the auto-complete dropdown with the given array of suggestions
setSeparator(separatorIn)
sets the separator string used for multi-value support (default is ',')
getLastValue()
returns the last value in case of multi-value input, or the current value if multi-value is disabled
setDataCallBack(dataCallBack)
Set a callback function - dataCallBack(value) - that will return the autocomplete values. The function should return an array of string based on the value argument, where value is the current value from the input text
value()
returns the current value of the input
setValue(value)
sets a new value
focus()
sets the focus on the element
setSelectionRange(start, end)
setMaxLength(maxLength)
sets the maximum input length
addEventListener(type, listener)
adds events to the input element
setWidth(width)
sets the input field width
setPlaceHolder(placeHolder)
sets input.placeHolder (HTML5)
setOnEnter(onEnter)
sets a function which is executed on keydown enter