Class

SelectField

SelectField()

Simple widget to set a select element.

Constructor

# new SelectField()

View Source fields/SelectField.js, line 9

Extends

Methods

# addListeners()

Listener for on change properties By default is change event for a Input[type=text] field

Inherited From:

View Source fields/BaseField.js, line 128

# buildDOM()

Builds the DOM representation of the widget By default is empty for a Input[type=text] field

Inherited From:

View Source fields/BaseField.js, line 172

# getCleanId() → {String}

Get the clean id name (without # or .)

Inherited From:

View Source fields/BaseField.js, line 161

Clean id

String

# getValue() → {*}

Get the current value of the field

Inherited From:

View Source fields/BaseField.js, line 153

Value of the field

*

# restore()

Restore the previous value & trigger onChange callback

Inherited From:

View Source fields/BaseField.js, line 196

# save()

Save action trigger onSave method

Inherited From:

View Source fields/BaseField.js, line 188

# setDefault()

Set default value (Normally only in the constructor)

Inherited From:

View Source fields/BaseField.js, line 110

# setDOM()

Set the value to the DOM element By default apply like a Input[type=text]

Inherited From:

View Source fields/BaseField.js, line 178

# setElement()

Set the element to listen on changes Overload in some cases

Inherited From:

View Source fields/BaseField.js, line 120

# setValue(value)

Programmatically set the value of the widget and update the DOM to reflect the changes.

Parameters:
Name Type Description
value *
Inherited From:

View Source fields/BaseField.js, line 143