JavaScript

A5Select Class

Arguments

selectIdstring

The ID of the SELECT element to bind to.

optionsarray

Data to use in the view box. If the view box uses static HTML, and does not require data, "null" can be passed in, or the data argument can be omitted.

settingsobject

Settings for the select control. This will override the initial values of the properties of the A5.Select class.

Description

SELECT tag helper control.

Discussion

The A5.Select class is a helper class that allows you to preform standard actions such as setting the value of a SELECT element, and populating the list of OPTIONs.

Properties

allowMissingobject

When preforming a A5.Select.setValue, if set to true, then values missing from the SELECT will be added. Otherwise missing values will not be kept by the A5.Select.setValue method.

classNamestring

The class name to put on the SELECT element.

disabledClassNamestring

The class name to put on the SELECT element when the SELECT has been disabled.

stylestring

The inline CSS to add to the SELECT element.

valuearray

The value of the SELECT element.

disabledobject

If true then the SELECT will be disabled.

onChangefunction(event,element)

Event fired when the value of the SELECT element changes.

onFocusfunction()

Event fired when the SELECT element receives focus.

onBlurfunction()

Event fired when the SELECT element looses focus.

onKeyDownfunction()

Event fired when a key down happens on the SELECT element.

onKeyUpfunction()

Event fired when a key up happens on the SELECT element.

onDblClickfunction()

Event fired when a double-click happens on the SELECT element.

onClickfunction()

Event fired when a click happens on the SELECT element.

onDownfunction()

Event fired when a mouse or touch down happens on the SELECT element.

onUpfunction()

Event fired when a mouse or touch up happens on the SELECT element.

Methods

populate Method

Populate the SELECT with new options.

refresh Method

Redraw the SELECT options.

setDisabled Method

Set the disabled state of the SELECT.

setValue Method

Set the value of the SELECT.

To get a pointer to the A5.Select class in a UX see dialog.object.getControl Method Object.