API Docs for:
Show:

flexiciousNmsp.ComboBox Class

Extends UIComponent

A ComboBox that implements ISingleSelectFilterControl (IFilterControl) and ISingleSelectDataBoundControl (IDataBoundControl) which enables it to be used within the filtering/binding infrasturcture.

Constructor

flexiciousNmsp.ComboBox

()

Properties

addAllItemText

String

Text of the "All" item. Defaults to "All"

Default: flxConstants.DEFAULT_ALL_ITEM_TEXT

dataField

String

Name of the field in the items in the dataProvider Array to use as the value of drop-down list. By default, the control uses a property named data on each Array object and displays it.

However, if the dataProvider items do not contain a data property, you can set the dataField property to use a different property.

. This is also used as the search field.

Default: data

filterComparisionType

String

This is usually automatically set, you don't have to manually set it, unless you're sending strings as Date objects. When set, will attempt to first convert the current value to the type you specified and then do the conversion. Values : auto,string,number,boolean,date

Default: auto

filterOperation

String

The filter operation to apply to the comparison See the FilterExpression class for a list. Please note, for CheckBoxList and MultiSelectComboBox, this field defaults to "InList" and is ignored when set. Valid values are : "Equals,NotEquals,BeginsWith,EndsWith,Contains,DoesNotContain,GreaterThan,LessThan,GreaterThanEquals,LessThanEquals,InList,NotInList,Between"

Default: Equals

filterTriggerEvent

String

The event that the filter triggers on. Defaults to "change", or if the filterRenderer supports com.flexicious.controls.interfaces.IDelayedChange, then the delayedChange event.

Default: change

grid

FlexDataGrid

The grid that the filter belongs to - can be null if filter is used outside the grid

hasSearch

Boolean

Whether or not there is an active search

Default: false

labelField

String

Name of the field in the items in the dataProvider Array to display as the label in the TextInput portion and drop-down list. By default, the control uses a property named label on each Array object and displays it.

However, if the dataProvider items do not contain a label property, you can set the labelField property to use a different property.

Default: label

labelFunction

Function

User-supplied function to run on each item to determine its label. By default the control uses a property named label on each dataProvider item to determine its label. However, some data sets do not have a label property, or do not have another property that can be used for displaying as a label.

An example is a data set that has lastName and firstName fields but you want to display full names. You use labelFunction to specify a callback function that uses the appropriate fields and return a displayable String.

The labelFunction takes a single argument which is the item in the dataProvider and returns a String:

 myLabelFunction(item:Object):String
 

Default: null

registered

Boolean

Whether or not this control has been registered. This should not be set by your code.

Default: false

searchField

String

The field to search on, usually same as the data field.

Default: null