A.FormBuilderField Class
A base class for A.FormBuilderField.
Constructor
A.FormBuilderField
-
config
Parameters:
-
configObjectObject 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
- buildFieldId
- buildFieldName
- createField
- destructor
- getAttributesForCloning
- getHTML
- getNode
- getProperties
- getPropertyModel
- initializer
- renderUI
Properties
- ATTRS static
- AUGMENTS static
- HTML_PARSER static
- NAME static
- UI_ATTRS static
Attributes
Methods
_booleanFormatter
-
o
Transforms a Boolean value into "yes" or "no" string.
Parameters:
-
oObject
_getFieldNode
()
protected
Returns the node for the current field.
_getToolbarItems
()
Array
Gets a list of toolbar items.
Returns:
_handleDeleteEvent
-
event
Popups a dialog to confirm deletion. If "yes", destroys the instance.
Parameters:
-
eventObject
_handleDuplicateEvent
-
event
Checks if the field isn't unique. If not, duplicates the instance.
Parameters:
-
eventObject
_handleEditEvent
-
event
Handles the edit event.
Parameters:
-
eventObject
_setId
-
val
Set the id attribute on the UI.
Parameters:
-
valObject
_uiSetAcceptChildren
-
val
Set the acceptChildren attribute on the UI.
Parameters:
-
valObject
_uiSetDisabled
-
val
Set the disabled attribute on the UI.
Parameters:
-
valObject
_uiSetFields
-
val
Set the fields on the UI using the plotFields method from
A.FormBuilder.
Parameters:
-
valObject
_uiSetLabel
-
val
Set the label content on the UI.
Parameters:
-
valObject
_uiSetName
-
val
Set the name attribute on the UI.
Parameters:
-
valObject
_uiSetPredefinedValue
-
val
Set the predefinedValue attribute on the UI.
Parameters:
-
valObject
_uiSetRequired
-
val
Set the required attribute on the UI.
Parameters:
-
valObject
_uiSetSelected
-
val
Set the selected attribute on the UI.
Parameters:
-
valObject
_uiSetShowLabel
-
val
Set the showLabel attribute on the UI.
Parameters:
-
valObject
_uiSetTip
-
val
Set the tip attribute on the UI.
Parameters:
-
valObject
_uiSetUnique
-
val
Set the unique attribute on the UI.
Parameters:
-
valObject
buildFieldId
-
id
Creates the field id.
Parameters:
-
idObject
Returns:
buildFieldName
-
type
Creates the field name.
Parameters:
-
typeObject
Returns:
createField
-
val
Creates the field using the createField method from
A.FormBuilder.
Parameters:
-
valObject
Returns:
destructor
()
protected
Destructor lifecycle implementation for the A.FormBuilderField
class.
getAttributesForCloning
()
Object
Gets all necessary attributes for cloning this field.
Returns:
getHTML
()
String
Gets the field markup.
To developer: Implement this
Returns:
getProperties
()
Array
Gets properties from the property model.
Returns:
getPropertyModel
()
Array
Returns a list of property models. Each property model is made of a name, attribute, editor, and formatter.
Returns:
initializer
()
protected
Construction logic executed during A.FormBuilderField instantiation.
Lifecycle.
renderUI
()
protected
Render the A.FormBuilderField component instance. Lifecycle.
Properties
ATTRS
Object
static
Static property used to define the default attribute
configuration for the A.FormBuilderField.
AUGMENTS
Array
static
Static property used to define the augmented classes.
HTML_PARSER
Object
static
Object hash, defining how attribute values have to be parsed from markup.
NAME
String
static
Static property provides a string to identify the class.
UI_ATTRS
Array
static
Static property used to define the UI attributes.
Attributes
readOnly
Boolean
Checks if an input field is read-only. In other words, it cannot be modified.
Default: false
required
Boolean
Checks if an input field is required. In other words, it needs content to be valid.
Default: false
zIndex
Number
Stack order of the field. An element with greater stack order is always in front of an element with a lower stack order.
Default: 100