Working With Field and Per-Field Action Buttons
Working With Field and Per-Field Action Buttons
The
Form
manages a collection of
Ab.form.Field
objects that represent form fields defined in the AXVW, and wraps actual field input DOM elements. Each
Field
object contains:
-
fieldDef:reference to theAb.data.FieldDefobject containing schema field information
-
dom: reference to the field input DOM element
-
actions:Ext.util.MixedCollectionof per-fieldAb.view.Actionobjects for each field button such as Select Value or document field buttons.
You can use the actions collection to enable, disable, show or hide specific action buttons for specific fields:
// disable all buttons for ls.doc field
this.leaseForm.fields.get('ls.ls_doc').actions.each(function (action) {
action.disable();
});
