Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Field
        CompositeField

Class CQ.Ext.form.CompositeField

Package:CQ.Ext.form
Class:CompositeField
Extends:CQ.Ext.form.Field
Clientlib:cq.widgets
xtype:compositefield
Composite field allowing a number of form Fields to be rendered on the same row. The fields are rendered using an hbox layout internally, so all of the normal HBox layout config items are available. Example usage:
{
    xtype: 'compositefield',
    labelWidth: 120
    items: [
        {
            xtype     : 'textfield',
            fieldLabel: 'Title',
            width     : 20
        },
        {
            xtype     : 'textfield',
            fieldLabel: 'First',
            flex      : 1
        },
        {
            xtype     : 'textfield',
            fieldLabel: 'Last',
            flex      : 1
        }
    ]
}
In the example above the composite's fieldLabel will be set to 'Title, First, Last' as it groups the fieldLabels of each of its children. This can be overridden by setting a fieldLabel on the compositefield itself:
{
    xtype: 'compositefield',
    fieldLabel: 'Custom label',
    items: [...]
}
Any CQ.Ext.form.* component can be placed inside a composite field.

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  defaults : Object
Any default properties to assign to the child fields.
CompositeField
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
  fieldClass : String
The default CSS class for the field (defaults to 'x-form-field')
Field
  focusClass : String
The CSS class to use when the field receives focus (defaults to 'x-form-focus')
Field
  invalidClass : String
The CSS class to use when marking a field invalid (defaults to 'x-form-invalid')
Field
  labelConnector : String
The string to use when joining segments of the built label together (defaults to ', ')
CompositeField
  pageX : Number
The page level x coordinate for this component if contained within a positioning container.
BoxComponent
  pageY : Number
The page level y coordinate for this component if contained within a positioning container.
BoxComponent
  validateOnBlur : Boolean
Whether the field should validate when it loses focus (defaults to true).
Field
  validationDelay : Number
The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)
Field
  validationEvent : String/Boolean
The event that should initiate field validation. Set to false to disable automatic validation (defaults to 'keyup').
Field
  value : Mixed
A value to initialize this field with (defaults to undefined).
Field
  x : Number
The local x (left) coordinate for this component if contained within a positioning container.
BoxComponent
  y : Number
The local y (top) coordinate for this component if contained within a positioning container.
BoxComponent

Public Properties

Property Defined By
  combineErrors : Boolean True
CompositeField
  defaultMargins : String The
CompositeField
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  fieldErrors : CQ.Ext.util.MixedCollection MixedCollection
CompositeField
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  innerCt : CQ.Ext.Container A
CompositeField
  isComposite : Boolean Signifies
CompositeField
  items : CQ.Ext.util.MixedCollection Internal
CompositeField
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component
  skipLastItemMargin : Boolean If
CompositeField

Public Methods

Method Defined By

Public Events

Event Defined By