Show:

A base class for A.FormBuilderTextAreaField.

Constructor

A.FormBuilderTextAreaField

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_booleanFormatter

(
  • o
)
protected

<p>Transforms a <code>Boolean</code> value into "yes" or "no" string.</p>

Parameters:

  • o Object

_getFieldNode

() protected

<p>Returns the node for the current field.</p>

_getToolbarItems

() Array

<p>Gets a list of toolbar items.</p>

Returns:

Array:

_handleDeleteEvent

(
  • event
)
protected

<p>Popups a dialog to confirm deletion. If "yes", destroys the instance.</p>

Parameters:

  • event Object

_handleDuplicateEvent

(
  • event
)
protected

<p>Checks if the field isn't unique. If not, duplicates the instance.</p>

Parameters:

  • event Object

_handleEditEvent

(
  • event
)
protected

<p>Handles the edit event.</p>

Parameters:

  • event Object

_setId

(
  • val
)
protected

<p>Set the <code>id</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetAcceptChildren

(
  • val
)
protected

<p>Set the <code>acceptChildren</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetDisabled

(
  • val
)
protected

<p>Set the <code>disabled</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetFields

(
  • val
)
protected

<p>Set the fields on the UI using the <code>plotFields</code> method from <code>A.FormBuilder</code>.</p>

Parameters:

  • val Object

_uiSetLabel

(
  • val
)
protected

<p>Set the label content on the UI.</p>

Parameters:

  • val Object

_uiSetName

(
  • val
)
protected

<p>Set the <code>name</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetPredefinedValue

(
  • val
)
protected

<p>Set the <code>predefinedValue</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetRequired

(
  • val
)
protected

<p>Set the <code>required</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetSelected

(
  • val
)
protected

<p>Set the <code>selected</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetShowLabel

(
  • val
)
protected

<p>Set the <code>showLabel</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetTip

(
  • val
)
protected

<p>Set the <code>tip</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetUnique

(
  • val
)
protected

<p>Set the <code>unique</code> attribute on the UI.</p>

Parameters:

  • val Object

_uiSetWidth

(
  • val
)
protected

<p>Set the <code>width</code> attribute in the UI.</p>

Parameters:

  • val Object

buildFieldId

(
  • id
)
String private

<p>Creates the field id.</p>

Parameters:

  • id Object

Returns:

String:

buildFieldName

(
  • type
)
String private

<p>Creates the field name.</p>

Parameters:

  • type Object

Returns:

String:

createField

(
  • val
)
Object

<p>Creates the field using the <code>createField</code> method from <code>A.FormBuilder</code>.</p>

Parameters:

  • val Object

Returns:

Object:

destructor

() protected

<p>Destructor lifecycle implementation for the <code>A.FormBuilderField</code> class.</p>

getAttributesForCloning

() Object

<p>Gets all necessary attributes for cloning this field.</p>

Returns:

Object:

getHTML

() String

<p>Injects data into the template and returns the HTML result.</p>

Returns:

String:

getNode

() Node

<p>Creates a <code>Node</code> from the HTML string.</p>

Returns:

Node:

getProperties

() Array

<p>Gets properties from the property model.</p>

Returns:

Array:

getPropertyModel

()

Returns a list of property models including the A.TextAreaCellEditor model.

initializer

() protected

<p>Construction logic executed during <code>A.FormBuilderField</code> instantiation. Lifecycle.</p>

renderUI

() protected

<p>Render the <code>A.FormBuilderField</code> component instance. Lifecycle.</p>

Properties

ATTRS

Object static

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

CSS_PREFIX

String static

Static property provides a string to identify the CSS prefix.

EXTENDS

Object static

Static property used to define which component it extends.

NAME

String static

Static property provides a string to identify the class.

Attributes

acceptChildren

Boolean

<p>If <code>true</code> children are accepted.</p>

Default: true

builder

<p>The <code>A.FormBuilder</code> instance.</p>

Default: null

controlsToolbar

Object

<p>Collection of toolbar controls.</p>

dataType

String

<p>Indicates which is the type of data for the input field.</p>

Default: 'string'

disabled

Boolean

<p>Checks if the input field is disabled or not.</p>

Default: false

dropZoneNode

<p>Node used to generate the drop zone.</p>

hiddenAttributes

Array

<p>List of hidden attributes.</p>

Default: []

label

String

<p>The label of the input field.</p>

Default: ''

localizationMap

Object

<p>Collection for content localization.</p>

Default: {}

parent

<p>Container for the field parent.</p>

Default: null

predefinedValue

String

<p>Specifies a predefined value for the input field.</p>

Default: ''

readOnly

Boolean

<p>Checks if an input field is read-only. In other words, it cannot be modified.</p>

Default: false

readOnlyAttributes

Array

<p>List of read-only input fields.</p>

Default: []

required

Boolean

<p>Checks if an input field is required. In other words, it needs content to be valid.</p>

Default: false

requiredFlagNode

<p>Node used to generate the required flag.</p>

selected

Boolean

<p>Checks if the input field is selected or not.</p>

Default: false

showLabel

Boolean

<p>If <code>true</code> the label is showed.</p>

Default: true

strings

Object

<p>Collection of strings used to label elements of the UI.</p>

template

Reusable block of markup used to generate the field.

templateNode

<p>Node used to generate a template.</p>

tip

String

<p>Hint to help the user to fill the input field.</p>

Default: ''

type

String

<p>Defines the type of field.</p>

Default: ''

unique

Boolean

<p>Checks if the input field is unique or not.</p>

Default: false

width

<p>The width of the input field.</p>

Default: 'small'

zIndex

Number

<p>Stack order of the field. An element with greater stack order is always in front of an element with a lower stack order.</p>

Default: 100