A.FormBuilderButtonField Class
alloy-ui/src/aui-form-builder-deprecated/js/aui-form-builder-field-button-deprecated.js:30
Parent Module: aui-form-builder
A base class for A.FormBuilderButtonField
.
Constructor
A.FormBuilderButtonField
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Index
Methods
- _booleanFormatter
- _getFieldNode
- _getToolbarItems
- _handleDeleteEvent
- _handleDuplicateEvent
- _handleEditEvent
- _setId
- _uiSetAcceptChildren
- _uiSetButtonType
- _uiSetDisabled
- _uiSetFields
- _uiSetLabel
- _uiSetName
- _uiSetPredefinedValue
- _uiSetRequired
- _uiSetSelected
- _uiSetShowLabel
- _uiSetTip
- _uiSetUnique
- buildFieldId
- buildFieldName
- createField
- destructor
- getAttributesForCloning
- getHTML
- getNode
- getProperties
- getPropertyModel
- initializer
- renderUI
Properties
- ATTRS static
- CSS_PREFIX static
- EXTENDS static
- NAME static
- UI_ATTRS static
Attributes
- acceptChildren
- builder
- buttonType
- 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
- zIndex
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
_uiSetButtonType
-
val
Set the buttonType
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
Injects data into the template and returns the HTML result.
Returns:
getProperties
()
Array
Gets properties from the property model.
Returns:
getPropertyModel
()
Array
Returns a list of property models including the A.RadioCellEditor
model.
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.FormBuilderButtonField
.
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.
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