Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Container
        Panel
          FormPanel

Class CQ.Ext.form.FormPanel

Package:CQ.Ext.form
Class:FormPanel
Subclasses:BulkEditorForm
Extends:CQ.Ext.Panel
Clientlib:cq.widgets

Standard form container.

Layout

By default, FormPanel is configured with layout:'form' to use an CQ.Ext.layout.FormLayout layout manager, which styles and renders fields and labels correctly. When nesting additional Containers within a FormPanel, you should ensure that any descendant Containers which host input Fields use the CQ.Ext.layout.FormLayout layout manager.

BasicForm

Although not listed as configuration options of FormPanel, the FormPanel class accepts all of the config options required to configure its internal CQ.Ext.form.BasicForm for:

Note: If subclassing FormPanel, any configuration options for the BasicForm must be applied to the initialConfig property of the FormPanel. Applying BasicForm configuration settings to this will not affect the BasicForm's configuration.

Form Validation

For information on form validation see the following:

Form Submission

By default, Ext Forms are submitted through Ajax, using CQ.Ext.form.Action. To enable normal browser submission of the BasicForm contained in this FormPanel, see the standardSubmit option.

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  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
  formId : String
(optional) The id of the FORM tag (defaults to an auto-generated id).
FormPanel
  itemCls : String
A css class to apply to the x-form-item of fields. This property cascades to child containers.
FormPanel
  monitorPoll : Number
The milliseconds to poll valid state, ignored if monitorValid is not true (defaults to 200)
FormPanel
  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
  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
  buttons : Array
This Panel's Array of buttons as created from the buttons config property. Read only.
Panel
  bwrap : CQ.Ext.Element
The Panel's bwrap Element used to contain other Panel elements (tbar, body, bbar, footer). See bodyCfg. Read-only.
Panel
  collapsed : Boolean
True if this panel is collapsed. Read-only.
Panel
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  header : CQ.Ext.Element
The Panel's header Element. Read-only.

This Element is used to house the title and tools


Note: see the Note for el also.

Panel
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  items : MixedCollection
The collection of components in this container as a CQ.Ext.util.MixedCollection
Container
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By