A.FormBuilderTextField Class
alloy-ui/src/aui-form-builder-deprecated/js/aui-form-builder-field-text-deprecated.js:30
Parent Module: aui-form-builder
A base class for A.FormBuilderTextField
.
Constructor
A.FormBuilderTextField
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Index
Methods
- _booleanFormatter
- _getFieldNode
- _getToolbarItems
- _handleDeleteEvent
- _handleDuplicateEvent
- _handleEditEvent
- _setId
- _uiSetAcceptChildren
- _uiSetDisabled
- _uiSetFields
- _uiSetLabel
- _uiSetName
- _uiSetPredefinedValue
- _uiSetRequired
- _uiSetSelected
- _uiSetShowLabel
- _uiSetTip
- _uiSetUnique
- _uiSetWidth
- buildFieldId
- buildFieldName
- createField
- destructor
- getAttributesForCloning
- getHTML
- getNode
- getProperties
- getPropertyModel
- initializer
- renderUI
Properties
- ATTRS static
- CSS_PREFIX static
- EXTENDS static
- NAME static
Attributes
- acceptChildren
- builder
- controlsToolbar
- dataType
- disabled
- dropZoneNode
- hiddenAttributes
- id
- label
- labelNode
- localizationMap
- name
- parent
- predefinedValue
- readOnly
- readOnlyAttributes
- required
- requiredFlagNode
- selected
- showLabel
- strings
- tabIndex
- template
- templateNode
- tip
- tipFlagNode
- type
- unique
- width
- zIndex
Methods
_booleanFormatter
-
o
<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:
_handleDeleteEvent
-
event
<p>Popups a dialog to confirm deletion. If "yes", destroys the instance.</p>
Parameters:
-
event
Object
_handleDuplicateEvent
-
event
<p>Checks if the field isn't unique. If not, duplicates the instance.</p>
Parameters:
-
event
Object
_handleEditEvent
-
event
<p>Handles the edit event.</p>
Parameters:
-
event
Object
_setId
-
val
<p>Set the <code>id</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetAcceptChildren
-
val
<p>Set the <code>acceptChildren</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetDisabled
-
val
<p>Set the <code>disabled</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetFields
-
val
<p>Set the fields on the UI using the <code>plotFields</code> method from <code>A.FormBuilder</code>.</p>
Parameters:
-
val
Object
_uiSetLabel
-
val
<p>Set the label content on the UI.</p>
Parameters:
-
val
Object
_uiSetName
-
val
<p>Set the <code>name</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetPredefinedValue
-
val
<p>Set the <code>predefinedValue</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetRequired
-
val
<p>Set the <code>required</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetSelected
-
val
<p>Set the <code>selected</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetShowLabel
-
val
<p>Set the <code>showLabel</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetTip
-
val
<p>Set the <code>tip</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetUnique
-
val
<p>Set the <code>unique</code> attribute on the UI.</p>
Parameters:
-
val
Object
_uiSetWidth
-
val
Set the width
attribute in the UI.
Parameters:
-
val
Object
buildFieldId
-
id
<p>Creates the field id.</p>
Parameters:
-
id
Object
Returns:
buildFieldName
-
type
<p>Creates the field name.</p>
Parameters:
-
type
Object
Returns:
createField
-
val
<p>Creates the field using the <code>createField</code> method from <code>A.FormBuilder</code>.</p>
Parameters:
-
val
Object
Returns:
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:
getHTML
()
String
Injects data into the template and returns the HTML result.
Returns:
getProperties
()
Array
<p>Gets properties from the property model.</p>
Returns:
getPropertyModel
()
Returns a list of property models including the A.RadioCellEditor
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.FormBuilderTextField
.
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
readOnly
Boolean
<p>Checks if an input field is read-only. In other words, it cannot be modified.</p>
Default: false
required
Boolean
<p>Checks if an input field is required. In other words, it needs content to be valid.</p>
Default: false
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