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.

Properties Detail

idTop

string id

Get the id of autocomplete

Show/Hide Code

Supported from version: 1.0.0.1

Methods Detail

attachToTop

void attachTo(string textboxid)

Attach this autocomplete to a textbox

Show/Hide Code

Supported from version: 1.0.0.0

getItemIdsTop

array getItemIds()

Get all ids of items in autocomplete

Show/Hide Code

Supported from version: 1.0.0.1

getItemTop

KoolAutoCompleteItem getItem(string itemid)

Get item object

Show/Hide Code

Supported from version: 1.0.0.1

addItemTop

KoolAutoCompleteItem addItem(string text, [object  data])

Add a new item to item list of autocomplete

Show/Hide Code

Supported from version: 1.0.0.1

removeItemTop

void removeItem(string itemid)

Remove item from item list of autocomplete

Show/Hide Code

Supported from version: 1.0.0.0

openTop

void open(string id)

Open autocomplete option panel

Show/Hide Code

Supported from version: 1.0.0.0

isOpeningTop

bool isOpening(string id)

Return true if autocomplete option panel is opening

Show/Hide Code

Supported from version: 1.0.0.0

closeTop

string close(string id)

Close autocomplete option panel

Show/Hide Code

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"

Show/Hide Code

Supported from version: 1.0.0.0