A.FormBuilderFieldToolbar Class
A base class for A.FormBuilderFieldToolbar
.
Constructor
A.FormBuilderFieldToolbar
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Methods
_afterItemsChange
()
protected
Fired after the items
attribute is changed.
_getFieldFromEvent
-
event
Gets the form builder field from the event's target node.
Parameters:
-
event
EventFacade
Returns:
_getItemFromEvent
-
event
Gets the item object that represents the event's target node.
Parameters:
-
event
EventFacade
Returns:
_onFieldMouseEnter
-
event
Fires when mouse enters on field.
Parameters:
-
event
EventFacade
_onFieldMouseLeave
()
protected
Fires when mouse leaves the field.
_onItemClick
-
event
Fired when one of the toolbar items is clicked.
Parameters:
-
event
EventFacade
_onToggleClick
()
protected
Fired when the toolbar's toggle is clicked.
_uiSetItems
-
items
Updates the UI according to the value of the items
attribute.
Parameters:
-
items
Array
addForField
-
field
Adds the toolbar for the given field.
Parameters:
-
field
A.FormBuilderFieldBase
close
()
Closes the toolbar.
destructor
()
protected
Destructor lifecycle implementation for the A.FormBuilderFieldToolbar
class.
Lifecycle.
getItem
-
selector
Finds one toolbar's item using the selector.
Parameters:
-
selector
String
Returns:
initializer
()
protected
Construction logic executed during the A.FormBuilderFieldToolbar
instantiation. Lifecycle.
open
()
Opens the toolbar
remove
()
Removes the toolbar from the DOM.
Properties
ATTRS
Object
static
Static property used to define the default attribute
configuration for the A.FormBuilderFieldToolbar
.
Attributes
items
Array
The items that should show up in the field toolbar. Each item should be represented by an object with the following keys: handler - (Optional) If present, the name of a function from the form builder to be called when this item is clicked. iconClass: The icon css class that should be used by this item.
Default: []