inputEx Documentation Back to homepage

inputEx Documentation > inputEx.AutoComplete 1.0.0

Class inputEx.AutoComplete - extends inputEx.StringField

An autocomplete module

Constructor

inputEx.AutoComplete ( options )
Parameters:
options

Methods

hideList

hideList()
Hide the list

highlightItem

highlightItem(liItem)
Set the highlighted item
Parameters:
    liItem

initEvents

initEvents()
Register some additional events

onBlur

onBlur(e)
undocumented
Parameters:
    e

onInput

onInput(e)
Start the typing timer on Input
Parameters:
    e

onKeyDown

onKeyDown(e)
Listen for up/down keys
Parameters:
    e

onListMouseOver

onListMouseOver(e)
Highlight the overed item
Parameters:
    e

queryList

queryList(value)
Run the query function
Parameters:
    value

renderComponent

renderComponent()
Render the hidden list element

resetTimer

resetTimer()
The timer is used to wait a little before sending the request, so that we don't send too much requests.

setOptions

setOptions()
Adds autocomplete options

showList

showList()
Show the list

stopTimer

stopTimer()
undocumented

timerEnd

timerEnd()
Send the request when the timer ends.

toggleHighlightItem

toggleHighlightItem(liItem, highlight)
Hightlight or unhighlight an item from the list
Parameters:
    liItem
    highlight

updateList

updateList(list)
Function to populate the list
Parameters:
    list

validateItem

validateItem()
Validate the item

Methods inherited from class inputEx.StringField:




Copyright (c) 2008 Eric Abouaf. All rights reserved.
Generated by JsDoc Toolkit 1.4.1 on Wed, 07 May 2008 10:26:29 GMT.