X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/api/Ext.form.FieldAncestor.html diff --git a/docs/api/Ext.form.FieldAncestor.html b/docs/api/Ext.form.FieldAncestor.html new file mode 100644 index 00000000..10c0d3e7 --- /dev/null +++ b/docs/api/Ext.form.FieldAncestor.html @@ -0,0 +1,104 @@ +
A mixin for Ext.container.Container components that are likely to have form fields in their +items subtree. Adds the following capabilities:
+ +This mixin is primarily for internal use by Ext.form.Panel and Ext.form.FieldContainer, +and should not normally need to be used directly.
+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.
+ +Fires when the active error message is changed for any one of the Ext.form.Labelable +instances within this container.
+Fires when the active error message is changed for any one of the Ext.form.Labelable +instances within this container.
+Labelable instance whose active error was changed
+The active error message
+