Reference Source
public class | source

DropdownList

Represents a ui DropdownList

See:

Constructor Summary

Public Constructor
public

constructor(id: String, options: Object)

Constructor

Method Summary

Public Methods
public

enable(flag: Boolean): Null

enable or disable the DropdownList

public

readonly(flag: Boolean): Null

Toggles the readonly state of the DropdownList.

public

setDataSource(array: String[]): Null

Sets the dataSource of an existing DropDownList and rebinds it.

public

value(text: String): String

Gets or sets the value of the DropdownList.

Public Constructors

public constructor(id: String, options: Object) source

Constructor

Params:

NameTypeAttributeDescription
id String

dropdownlist id

options Object

option params

options.data String[]

The data source of the widget, changes of the data source will be reflected in the widget

options.change function(e: Object): null

callback function will run on value change event

options.select function(e: Object): null

callback function will run on the popup is selected

options.dataBound function(e: Object): null

callback function will run on the widget is bound to data from its data source

Public Methods

public enable(flag: Boolean): Null source

enable or disable the DropdownList

Params:

NameTypeAttributeDescription
flag Boolean

if false, DropdownList will be disabled

Return:

Null

public readonly(flag: Boolean): Null source

Toggles the readonly state of the DropdownList. When the AutoComplete is readonly it doesn't allow user input.

Params:

NameTypeAttributeDescription
flag Boolean

If true the DropdownList will not allow user input.

Return:

Null

public setDataSource(array: String[]): Null source

Sets the dataSource of an existing DropDownList and rebinds it.

Params:

NameTypeAttributeDescription
array String[]

the dropdownlist's values will be set with this

Return:

Null

public value(text: String): String source

Gets or sets the value of the DropdownList.

Params:

NameTypeAttributeDescription
text String

The value to set.

Return:

String

The value of the widget.