Show:

A base class for A.FormBuilderFieldType.

Constructor

A.FormBuilderFieldType

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_afterDisabledChange

() protected

Fired after the disabled attribute is set.

_afterIconChange

(
  • event
)
protected

Fired after the icon attribute is set.

Parameters:

_afterLabelChange

() protected

Fired after the label attribute is set.

_onMouseLeave

() protected

Fire when mouseleave the field type.

_onMouseOver

() protected

Fire when mouseover the field type.

_uiSetDisabled

(
  • disabled
)
protected

Updates the UI according to the value of the disabled attribute.

Parameters:

  • disabled Boolean

destructor

() protected

Destructor implementation for A.FormBuilderFieldType. Lifecycle.

initializer

() protected

Constructor for A.FormBuilderFieldType. Lifecycle.

Properties

ATTRS

Object static

Static property used to define the default attribute configuration for the A.FormBuilderFieldType.

Attributes

defaultConfig

Object

The default configuration object to be used when creating an instance of a field of this type.

Default: {}

disabled

Boolean

Defines if the field type should be disabled or not.

Default: false

fieldClass

Function

The js class constructor to be used when instantiating this field.

icon

String

Contains a CSS class of the icon to use. A list of icons can be found here.

Default: ''

label

String

The label of the input field.

Default: ''

node

Node

The node used to render this field type.

unique

Boolean

Defines if the input field is unique or not.

Default: false