KoolAutoComplete Class [Javascript]
Summary
Properties | Description | |
id | Get the id of autocomplete |
Methods | Description | |
attachTo | Attach this autocomplete to a textbox | |
getItemIds | Get all ids of items in autocomplete | |
getItem | Get item object | |
addItem | Add a new item to item list of autocomplete | |
removeItem | Remove item from item list of autocomplete | |
open | Open autocomplete option panel | |
isOpening | Return true if autocomplete option panel is opening | |
close | Close autocomplete option panel | |
registerEvent | Register an client-side event. |
Methods Detail
attachToTop
void attachTo(string textboxid)
Attach this autocomplete to a textbox
Supported from version: 1.0.0.0
getItemIdsTop
array getItemIds()
Get all ids of items in autocomplete
Supported from version: 1.0.0.1
getItemTop
KoolAutoCompleteItem getItem(string itemid)
Get item object
Supported from version: 1.0.0.1
addItemTop
KoolAutoCompleteItem addItem(string text, [object data])
Add a new item to item list of autocomplete
Supported from version: 1.0.0.1
removeItemTop
void removeItem(string itemid)
Remove item from item list of autocomplete
Supported from version: 1.0.0.0
isOpeningTop
bool isOpening(string id)
Return true if autocomplete option panel is opening
Supported from version: 1.0.0.0
registerEventTop
void registerEvent(string eventName, function handleEvent)
Register an client-side event.
Allowed eventName:
-
"OnBeforeSelect"
"OnBeforeOpen"
"OnBeforeClose"
"OnBeforeSendUpdateRequest"
"OnBeforeUpdateItemList"
"OnBeforeKeyPress"
"OnSelect"
"OnOpen"
"OnClose"
"OnSendUpdateRequest"
"OnUpdateItemList"
"OnKeyPress"
Supported from version: 1.0.0.0