KoolCombobox Class [Javascript]

Summary

Properties Description
id Get the id of combobox
Methods Description
getItemIds Get all ids of items in combobox
getItem Get item object
addItem Add a new item to item list of combobox
removeItem Remove item from item list of combobox
getText Get selected text in combobox
getValue Get selected value in combobox
open Open combobox option panel
isOpening Return true if combobox option panel is opening
close Close combobox option panel
registerEvent Register an client-side event.

Properties Detail

idTop

string id

Get the id of combobox

Show/Hide Code

Supported from version: 1.0.0.1

Methods Detail

getItemIdsTop

array getItemIds()

Get all ids of items in combobox

Show/Hide Code

Supported from version: 1.0.0.1

getItemTop

KoolcomboboxItem getItem(string itemid)

Get item object

Show/Hide Code

Supported from version: 1.0.0.1

addItemTop

KoolcomboboxItem addItem(string text, [object  data])

Add a new item to item list of combobox

Show/Hide Code

Supported from version: 1.0.0.1

removeItemTop

void removeItem(string itemid)

Remove item from item list of combobox

Show/Hide Code

Supported from version: 1.0.0.0

getTextTop

string getText(string  id)

Get selected text in combobox

Show/Hide Code

Supported from version: 1.0.0.0

getValueTop

string getValue(string id)

Get selected value in combobox

Show/Hide Code

Supported from version: 1.0.0.0

openTop

void open(string id)

Open combobox option panel

Show/Hide Code

Supported from version: 1.0.0.0

isOpeningTop

bool isOpening(string id)

Return true if combobox option panel is opening

Show/Hide Code

Supported from version: 1.0.0.0

closeTop

string close(string id)

Close combobox 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