A.FormBuilderField Class
A base class for A.FormBuilderField
.
Constructor
A.FormBuilderField
-
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
- 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:
-
o
Object
_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:
-
event
Object
_handleDuplicateEvent
-
event
Checks if the field isn't unique. If not, duplicates the instance.
Parameters:
-
event
Object
_handleEditEvent
-
event
Handles the edit event.
Parameters:
-
event
Object
_setId
-
val
Set the id
attribute on the UI.
Parameters:
-
val
Object
_uiSetAcceptChildren
-
val
Set the acceptChildren
attribute on the UI.
Parameters:
-
val
Object
_uiSetDisabled
-
val
Set the disabled
attribute on the UI.
Parameters:
-
val
Object
_uiSetFields
-
val
Set the fields on the UI using the plotFields
method from
A.FormBuilder
.
Parameters:
-
val
Object
_uiSetLabel
-
val
Set the label content on the UI.
Parameters:
-
val
Object
_uiSetName
-
val
Set the name
attribute on the UI.
Parameters:
-
val
Object
_uiSetPredefinedValue
-
val
Set the predefinedValue
attribute on the UI.
Parameters:
-
val
Object
_uiSetRequired
-
val
Set the required
attribute on the UI.
Parameters:
-
val
Object
_uiSetSelected
-
val
Set the selected
attribute on the UI.
Parameters:
-
val
Object
_uiSetShowLabel
-
val
Set the showLabel
attribute on the UI.
Parameters:
-
val
Object
_uiSetTip
-
val
Set the tip
attribute on the UI.
Parameters:
-
val
Object
_uiSetUnique
-
val
Set the unique
attribute on the UI.
Parameters:
-
val
Object
buildFieldId
-
id
Creates the field id.
Parameters:
-
id
Object
Returns:
buildFieldName
-
type
Creates the field name.
Parameters:
-
type
Object
Returns:
createField
-
val
Creates the field using the createField
method from
A.FormBuilder
.
Parameters:
-
val
Object
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