A.FormBuilderFieldText Class
A base class for Form Builder Field Text.
Constructor
A.FormBuilderFieldText
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Index
Methods
- _afterAdvancedSettingsChange
- _afterExpandedChange
- _afterHelpChange
- _afterNestedFieldsChange
- _afterPlaceholderChange
- _afterTitleChange
- _afterTypeChange
- _attachEvent
- _attachEvents
- _createAdvancedSettingsToggler
- _createMoveTarget
- _detachEvents
- _dispatchEvent
- _fillAdvancedSettings
- _fillSettings
- _fireEvent
- _getAdvancedSettings
- _getEventName
- _getNodeName
- _getSettings
- _hasParent
- _prepareHandles
- _toggleVisibilityOfModalContent
- _uiSetHelp
- _uiSetNestedFields
- _uiSetPlaceholder
- _uiSetTitle
- _uiSetType
- _updateAdvancedSettingsChange
- _validateNestedFields
- addNestedField
- collapseModalContent
- delegate
- destructor
- detach
- detachDelegate
- hasModifier
- initializer
- isKey
- isKeyInRange
- isKeyInSet
- isModifyingKey
- isNavKey
- isSpecialKey
- on
- removeNestedField
- renderAdvancedSettings
- renderBasicSettings
- renderSetting
- renderSettingsPanel
- renderUI
- saveSettings
- validateSettings
Attributes
Events
Methods
_afterAdvancedSettingsChange
()
protected
<p>Fired after the a advanced settings change.</p>
_afterExpandedChange
-
event
<p>Fired after the a Toggler of Advanced Settings change.</p>
Parameters:
-
eventEventFacade
_afterHelpChange
()
protected
Fired after the help attribute is set.
_afterNestedFieldsChange
()
protected
Fired after the nestedFields attribute is set.
_afterPlaceholderChange
()
protected
Fired after the placeholder attribute is set.
_afterTitleChange
()
protected
Fired after the title attribute is set.
_afterTypeChange
()
protected
Fired after the type attribute is set.
_attachEvent
-
node -
subscription -
notifier -
delegateNode -
filter
<p>Adds an event subscription.</p>
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject -
delegateNodeObject -
filterObject
_attachEvents
-
node -
subscription -
notifier -
filter
<p>Adds an event subscription.</p>
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject -
filterObject
_createAdvancedSettingsToggler
()
protected
<p>Create a Toggler with the advanced settings.</p>
_createMoveTarget
-
position
<p>Creates a move target node.</p>
Parameters:
-
positionNumber<p><p><p>The position where the moved field will be added if this is the chosen target.</p></p></p>
Returns:
_detachEvents
-
node -
subscription -
notifier
<p>Deletes a group of event subscriptions.</p>
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
_dispatchEvent
-
subscription -
notifier -
event
<p>Dispatches an <code>input</code> event.</p>
Parameters:
-
subscriptionObject -
notifierObject -
eventObject
_fillAdvancedSettings
()
protected
Fills the advanced settings array with the information for this field.
_fillSettings
()
protected
Fills the settings array with the information for this field.
_fireEvent
-
subscription -
notifier -
event -
valueBeforeKey
<p>Fires an event.</p>
Parameters:
-
subscriptionObject -
notifierObject -
eventObject -
valueBeforeKeyObject
_getAdvancedSettings
()
Array
protected
<p>Gets the list of advanced settings for this field.</p>
Returns:
_getEventName
()
protected
<p>Gets an event name.</p>
_getNodeName
-
elem -
name
<p>Gets a node name.</p>
Parameters:
-
elemObject -
nameObject
_getSettings
()
Array
protected
<p>Gets the list of settings for this field. Safer then calling the property directly, as this will lazy load the settings if they're not ready yet. Each setting should be an object with the following keys: attrName and editor.</p>
Returns:
_hasParent
-
node -
testParentNode
<p>Checks if a node has parent.</p>
Parameters:
-
nodeObject -
testParentNodeObject
_prepareHandles
-
subscription -
node
<p>Prepares event handles.</p>
Parameters:
-
subscriptionObject -
nodeObject
_toggleVisibilityOfModalContent
()
protected
<p>Toggle visibility classes on Modal Content.</p>
_uiSetHelp
-
help
Updates the ui according to the value of the help attribute.
Parameters:
-
helpString
_uiSetNestedFields
-
nestedFields
<p>Updates the UI according to the value of the <code>nestedFields</code> attribute.</p>
Parameters:
-
nestedFieldsArray
_uiSetPlaceholder
-
placeholder
Updates the ui according to the value of the placeholder attribute.
Parameters:
-
placeholderString
_uiSetTitle
-
title
Updates the ui according to the value of the title attribute.
Parameters:
-
titleString
_uiSetType
-
type
Updates the ui according to the value of the type attribute.
Parameters:
-
typeString
_updateAdvancedSettingsChange
()
protected
<p>Updates the UI according to the values of the Advanced Settings.</p>
_validateNestedFields
-
val
Validates the value being set to the nestedFields attribute.
Parameters:
-
valArray
addNestedField
-
index -
field
Adds the given field to this field's nested list.
Parameters:
-
indexNumber -
fieldA.FormField
collapseModalContent
()
<p>Collapse Advanced Settings Content.</p>
delegate
-
node -
subscription -
notifier -
filter
<p>Implementation logic for subscription via <code>node.delegate</code>.</p>
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject -
filterObject
destructor
()
protected
Destructor lifecycle implementation for the A.FormField class.
Lifecycle.
detach
-
node -
subscription -
notifier
<p>Implementation logic for cleaning up a detached subscription.</p>
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
detachDelegate
-
node -
subscription -
notifier
<p>Implementation logic for cleaning up a detached delegate subscription.</p>
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
hasModifier
()
Boolean
<p>Checks if an event is triggered by a keyboard key like <code>CTRL</code>, <code>ALT</code> or <code>SHIFT</code>.</p>
Returns:
initializer
()
protected
<p>Constructor for the <code>A.FormBuilderFieldBase</code> component. Lifecycle.</p>
isKey
-
name
<p>Checks if an event is triggered by a keyboard key.</p>
Parameters:
-
nameObject
Returns:
isKeyInRange
-
start -
end
<p>Checks if an event is triggered by a keyboard key located between two other keys.</p>
Parameters:
-
startObject -
endObject
Returns:
isKeyInSet
()
Boolean
<p>Checks if an event is triggered by a keyboard key contained in the key set.</p>
Returns:
isModifyingKey
()
<p>Checks if an event is triggered by <code>ENTER</code>, <code>TAB</code>, <code>ESC</code> keyboard keys or by a key located between <code>PAGE UP</code> and <code>DOWN</code>.</p>
isSpecialKey
()
Boolean
<p>Checks if an event is triggered by a special keyboard key like <code>SHIFT</code>, <code>CAPS LOCK</code>, etc.</p>
Returns:
on
-
node -
subscription -
notifier
<p>Implementation logic for event subscription.</p>
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
removeNestedField
-
field
Removes the given field from this field's nested list.
Parameters:
-
fieldA.FormField
renderAdvancedSettings
()
<p>Renders the advanced settings on panel.</p>
renderBasicSettings
()
<p>Renders the basic settings on panel.</p>
renderSetting
-
setting -
targetNode
<p>Renders a single field setting to be edited.</p>
Parameters:
-
settingObject -
targetNodeNode
renderSettingsPanel
-
container
<p>Renders the settings panel.</p>
Parameters:
-
containerNode<p><p><p>The container where the panel should be rendered.</p></p></p>
renderUI
()
protected
Create the DOM structure for the A.FormFieldText. Lifecycle.
saveSettings
()
<p>Saves the edited settings.</p>
validateSettings
()
Boolean
<p>Validates all data editors used by this field's settings.</p>
Returns:
Attributes
Events
change
<p>Defines a new <code>change</code> event in the DOM event system.</p>
contentToggle
<p>Fired when toggle the modal content.</p>
input
<p>Defines a new <code>input</code> event in the DOM event system.</p>
submit
<p>Defines a new <code>submit</code> event in the DOM event system.</p>