Clear Up
SharpKit Reference

PanelConfig Class

Namespace: Ext.form

Derived Types

Constructors

Name Description
PanelConfig(Object[])

Fields

Name Description
fieldDefaults If specified, the properties in this object are used as default config values for each Ext.form.Labelable instance (e.g. Ext.form.field.Base or Ext.form.FieldContainer) that is added as a descendant of this container. Corresponding values specified in an individual field's own configuration, or from the defaults config of its parent container, will take precedence. See the documentation for Ext.form.Labelable to see what config options may be specified in the fieldDefaults. Example:
new Ext.form.Panel({
            fieldDefaults: {
            labelAlign: 'left',
            labelWidth: 100
            },
            items: [{
            xtype: 'fieldset',
            defaults: {
            labelAlign: 'top'
            },
            items: [{
            name: 'field1'
            }, {
            name: 'field2'
            }]
            }, {
            xtype: 'fieldset',
            items: [{
            name: 'field3',
            labelWidth: 150
            }, {
            name: 'field4'
            }]
            }]
            });
            
In this example, field1 and field2 will get labelAlign:'top' (from the fieldset's defaults) and labelWidth:100 (from fieldDefaults), field3 and field4 will both get labelAlign:'left' (from fieldDefaults and field3 will use the labelWidth:150 from its own config.
pollForChanges If set to true, sets up an interval task (using the pollInterval) in which the panel's fields are repeatedly checked for changes in their values. This is in addition to the normal detection each field does on its own input element, and is not needed in most cases. It does, however, provide a means to absolutely guarantee detection of all changes including some edge cases in some browsers which do not fire native events. Defaults to false.
pollInterval Interval in milliseconds at which the form's fields are checked for value changes. Only used if the pollForChanges option is set to true. Defaults to 500 milliseconds.
© Copyright 2005-2011 SharpKit. All rights reserved.