Class

InputField

InputField()

Simple widget to set a input element.

Constructor

# new InputField()

View Source fields/InputField.js, line 9

Extends

Methods

# addListeners()

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

Overrides:

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

Overrides:

View Source fields/BaseField.js, line 172

# getCleanId() → {String}

Get the clean id name (without # or .)

Overrides:

View Source fields/BaseField.js, line 161

Clean id

String

# getValue() → {*}

Get the current value of the field

Overrides:

View Source fields/BaseField.js, line 153

Value of the field

*

# restore()

Restore the previous value & trigger onChange callback

Overrides:

View Source fields/BaseField.js, line 196

# save()

Save action trigger onSave method

Overrides:

View Source fields/BaseField.js, line 188

# setDefault()

Set default value (Normally only in the constructor)

Overrides:

View Source fields/BaseField.js, line 110

# setDOM()

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

Overrides:

View Source fields/BaseField.js, line 178

# setElement()

Set the element to listen on changes Overload in some cases

Overrides:

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 *
Overrides:

View Source fields/BaseField.js, line 143