KoolCombobox Class [PHP]

Summary

Properties Description
align Get or set the alignment of option panel in KoolCombobox
boxHeight Get or set the height of option panel in KoolCombobox
boxWidth Get or set the width of option panel in KoolCombobox
effect Get or set the open effect of KoolCombobox's option panel
footerTemplate Get or set the footer template of option panel
headerTemplate Get or set the header template of option panel
id Get or set id of KoolCombobox
inputValidate Get or set whether input inserted to combobox will be validated.
itemTemplate Get or set the item template of option panel.
maxBoxHeight Get or set the max height of option panel in KoolCombobox
minBoxHeight Get or set the min height of option panel in KoolCombobox
openDirection Get or set open direction of combobox
serviceFunction Get or set the name of koolajax-enabled function that will be used to update item list from server
styleFolder Get or set folder which contain css style for KoolCombobox
superAbove Get or set whether whether "shim" technique is used.
width Get or set the width for combobox
Methods Description
addItem Add item to option list of KoolCombobox
LoadXML Create KoolCombobox from XML.
Render Render the KoolCombobox
RegisterScript Return html to register js library for KoolCombobox.
RegisterCSS Return html to register CSS for KoolCombobox
RenderCombobox Return html content of KoolCombobox body
StartupScript Return js code to inititate KoolCombobox

Properties Detail

alignTop

string align

Get or set the alignment of option panel in KoolCombobox

Default value : "right"

Allowed values :

  • "left" : Align option panel to the left.
  • "right" : Align option panel to the right.

Show/Hide Code

Supported from version: 1.0.0.0

boxHeightTop

string boxHeight

Get or set the height of option panel in KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0

boxWidthTop

string boxWidth

Get or set the width of option panel in KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0

effectTop

string effect

Get or set the open effect of KoolCombobox's option panel. Note: More effects will be added in the future.

Allowed values :

  • "none" : Combobox open option panel at bottom.

Show/Hide Code

Supported from version: 1.0.0.0

footerTemplateTop

string footerTemplate

Get or set the footer template of option panel

Show/Hide Code

Supported from version: 1.0.0.0

headerTemplateTop

string headerTemplate

Get or set the header template of option panel

Show/Hide Code

Supported from version: 1.0.0.0

idTop

string id

Get or set the id for KoolCombobox. This id will be use as variable name of KoolCombobox at client-side.

Show/Hide Code

Supported from version: 1.0.0.0

inputValidateTop

string inputValidate

Get or set whether input inserted to combobox will be validated. If true the selected option must be one of items in option panel.

Default value : true

Show/Hide Code

Supported from version: 1.0.0.0

itemTemplateTop

string itemTemplate

Get or set the item template of option panel. The template contains marking to be replaced item's data. For example, {text} will be replaced by the text of each items.

Show/Hide Code

Supported from version: 1.0.0.0

maxBoxHeightTop

string maxBoxHeight

Get or set the max height of option panel in KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0

minBoxHeightTop

string minBoxHeight

Get or set the min height of option panel in KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0

openDirectionTop

string openDirection

Get or set open direction of combobox

Default value : down

Allowed values :

  • down : ComboBox open option panel at bottom.
  • up : ComboBox open option panel at top.

Show/Hide Code

Supported from version: 1.0.0.0

serviceFunctionTop

string serviceFunction

Get or set the name of koolajax-enabled function that will be used to update item list from server The service function will will take a text agurment ( this is the text that user keys in at client-side and sent to server-side) and return an array contain item data.

Show/Hide Code

Supported from version: 1.0.0.0

styleFolderTop

string styleFolder

Get or set folder which contain css style for KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0

superAboveTop

bool superAbove

Get or set whether whether "shim" technique is used. This is very useful if your application running in IE6 because it helps option panel to open above all other elements.

Default value : "true"

Show/Hide Code

Supported from version: 1.0.0.0

widthTop

string width

Get or set the width for combobox

Show/Hide Code

Supported from version: 1.0.0.0

Methods Detail

addItemTop

KoolComboboxItem addItem(string  $text, string  $value, [array  $data], [bool  $select], [bool  $enabled])

Add item to option list of KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0

LoadXMLTop

function  LoadXML(string xml)

Create KoolCombobox with XML content. The input value may be string or XmlDocument.

Show/Hide Code

Supported from version: 1.2.0.0

RenderTop

void Render()

Render the KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0

RegisterScriptTop

string RegisterScript()

Return html to register js library for KoolCombobox.

Show/Hide Code

Supported from version: 1.0.0.0

RegisterCSSTop

string RegisterCSS()

Return html to register CSS for KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0

RenderComboboxTop

string RenderCombobox()

Return html content of KoolCombobox body

Show/Hide Code

Supported from version: 1.0.0.0

StartupScriptTop

string StartupScript()

Return js code to inititate KoolCombobox

Show/Hide Code

Supported from version: 1.0.0.0