Input type that supports autocomplete through a callback function
Members
container
style
exposes input.style
Functions
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