A.FormBuilderFieldBase Class
An augmentation class which adds some editing funcionality to form builder fields.
Constructor
A.FormBuilderFieldBase
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Index
Methods
- _afterAdvancedSettingsChange
- _afterExpandedChange
- _attachEvent
- _attachEvent
- _attachEvents
- _createAdvancedSettingsToggler
- _createMoveTarget
- _detachEvents
- _detachEvents
- _dispatchEvent
- _fireEvent
- _getAdvancedSettings
- _getEventName
- _getNodeName
- _getSettings
- _hasParent
- _prepareHandles
- _prepareHandles
- _toggleVisibilityOfModalContent
- _uiSetNestedFields
- _updateAdvancedSettingsChange
- collapseModalContent
- delegate
- delegate
- delegate
- detach
- detach
- detach
- detachDelegate
- detachDelegate
- detachDelegate
- hasModifier
- initializer
- isKey
- isKeyInRange
- isKeyInSet
- isModifyingKey
- isNavKey
- isSpecialKey
- on
- on
- on
- renderAdvancedSettings
- renderBasicSettings
- renderSetting
- renderSettingsPanel
- saveSettings
- validateSettings
Attributes
Events
Methods
_afterAdvancedSettingsChange
()
protected
Fired after the a advanced settings change.
_afterExpandedChange
-
event
Fired after the a Toggler of Advanced Settings change.
Parameters:
-
eventEventFacade
_attachEvent
-
form -
node -
subscription -
notifier -
filter
Adds an event subscription.
Parameters:
-
formObject -
nodeObject -
subscriptionObject -
notifierObject -
filterObject
_attachEvent
-
node -
subscription -
notifier -
delegateNode -
filter
Adds an event subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject -
delegateNodeObject -
filterObject
_attachEvents
-
node -
subscription -
notifier -
filter
Adds an event subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject -
filterObject
_createAdvancedSettingsToggler
()
protected
Create a Toggler with the advanced settings.
_createMoveTarget
-
position
Creates a move target node.
Parameters:
-
positionNumberThe position where the moved field will be added if this is the chosen target.
Returns:
_detachEvents
-
node -
subscription -
notifier
Deletes a group of event subscriptions.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
_detachEvents
-
node -
subscription -
notifier
Deletes a group of event subscriptions.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
_dispatchEvent
-
subscription -
notifier -
event
Dispatches an input event.
Parameters:
-
subscriptionObject -
notifierObject -
eventObject
_fireEvent
-
subscription -
notifier -
event -
valueBeforeKey
Fires an event.
Parameters:
-
subscriptionObject -
notifierObject -
eventObject -
valueBeforeKeyObject
_getAdvancedSettings
()
Array
protected
Gets the list of advanced settings for this field.
Returns:
_getEventName
()
protected
Gets an event name.
_getNodeName
-
elem -
name
Gets a node name.
Parameters:
-
elemObject -
nameObject
_getSettings
()
Array
protected
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.
Returns:
_hasParent
-
node -
testParentNode
Checks if a node has parent.
Parameters:
-
nodeObject -
testParentNodeObject
_prepareHandles
-
subscription -
node
Prepares event handles.
Parameters:
-
subscriptionObject -
nodeObject
_prepareHandles
-
subscription -
node
Prepares event handles.
Parameters:
-
subscriptionObject -
nodeObject
_toggleVisibilityOfModalContent
()
protected
Toggle visibility classes on Modal Content.
_uiSetNestedFields
-
nestedFields
Updates the UI according to the value of the nestedFields attribute.
Parameters:
-
nestedFieldsArray
_updateAdvancedSettingsChange
()
protected
Updates the UI according to the values of the Advanced Settings.
collapseModalContent
()
Collapse Advanced Settings Content.
delegate
-
node -
subscription -
notifier -
filter
Implementation logic for subscription via node.delegate.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject -
filterObject
delegate
-
node -
subscription -
notifier -
filter
Implementation logic for subscription via node.delegate.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject -
filterObject
delegate
-
node -
subscription -
notifier -
filter
Implementation logic for subscription via node.delegate.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject -
filterObject
detach
-
node -
subscription -
notifier
Implementation logic for cleaning up a detached subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
detach
-
node -
subscription -
notifier
Implementation logic for cleaning up a detached subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
detach
-
node -
subscription -
notifier
Implementation logic for cleaning up a detached subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
detachDelegate
-
node -
subscription -
notifier
Implementation logic for cleaning up a detached delegate subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
detachDelegate
-
node -
subscription -
notifier
Implementation logic for cleaning up a detached delegate subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
detachDelegate
-
node -
subscription -
notifier
Implementation logic for cleaning up a detached delegate subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
hasModifier
()
Boolean
Checks if an event is triggered by a keyboard key like CTRL, ALT
or SHIFT.
Returns:
initializer
()
protected
Constructor for the A.FormBuilderFieldBase component. Lifecycle.
isKey
-
name
Checks if an event is triggered by a keyboard key.
Parameters:
-
nameObject
Returns:
isKeyInRange
-
start -
end
Checks if an event is triggered by a keyboard key located between two other keys.
Parameters:
-
startObject -
endObject
Returns:
isKeyInSet
()
Boolean
Checks if an event is triggered by a keyboard key contained in the key set.
Returns:
isModifyingKey
()
Checks if an event is triggered by ENTER, TAB, ESC keyboard
keys or by a key located between PAGE UP and DOWN.
isSpecialKey
()
Boolean
Checks if an event is triggered by a special keyboard key like
SHIFT, CAPS LOCK, etc.
Returns:
on
-
node -
subscription -
notifier
Implementation logic for event subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
on
-
node -
subscription -
notifier
Implementation logic for event subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
on
-
node -
subscription -
notifier
Implementation logic for event subscription.
Parameters:
-
nodeObject -
subscriptionObject -
notifierObject
renderAdvancedSettings
()
Renders the advanced settings on panel.
renderBasicSettings
()
Renders the basic settings on panel.
renderSetting
-
setting -
targetNode
Renders a single field setting to be edited.
Parameters:
-
settingObject -
targetNodeNode
renderSettingsPanel
-
container
Renders the settings panel.
Parameters:
-
containerNodeThe container where the panel should be rendered.
saveSettings
()
Saves the edited settings.
validateSettings
()
Boolean
Validates all data editors used by this field's settings.
Returns:
Events
change
Defines a new change event in the DOM event system.
contentToggle
Fired when toggle the modal content.
input
Defines a new input event in the DOM event system.
submit
Defines a new submit event in the DOM event system.