X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..e9397f91ede62d446aed37d23256e8938fc4c335:/docs/output/Ext.form.BasicForm.html diff --git a/docs/output/Ext.form.BasicForm.html b/docs/output/Ext.form.BasicForm.html index 40755b25..be57263b 100644 --- a/docs/output/Ext.form.BasicForm.html +++ b/docs/output/Ext.form.BasicForm.html @@ -1,4 +1,5 @@ -
Observable
  BasicForm

Class Ext.form.BasicForm

Package:Ext.form
Defined In:BasicForm.js
Class:BasicForm
Extends:Observable

Encapsulates the DOM <form> element at the heart of the FormPanel class, and provides +

Observable
+  BasicForm

Class Ext.form.BasicForm

Package:Ext.form
Defined In:BasicForm.js
Class:BasicForm
Extends:Observable

Encapsulates the DOM <form> element at the heart of the FormPanel class, and provides input field management, validation, submission, and form loading services.

By default, Ext Forms are submitted through Ajax, using an instance of Ext.form.Action.Submit. To enable normal browser submission of an Ext Form, use the standardSubmit config option.

@@ -259,7 +260,9 @@ Or a shorthand syntax:
: BasicForm
Calls Ext.applyIf for all field in this form with the passed object.
Calls Ext.applyIf for all field in this form with the passed object.
Parameters:
  • values : Object
Returns:
  • BasicForm
    this
BasicForm applyToFieldsObject values ) : - BasicForm
Calls Ext.apply for all fields in this form with the passed object.
Calls Ext.apply for all fields in this form with the passed object.
Parameters:
  • values : Object
Returns:
  • BasicForm
    this
BasicForm clearInvalid() + BasicForm
Calls Ext.apply for all fields in this form with the passed object.
Calls Ext.apply for all fields in this form with the passed object.
Parameters:
  • values : Object
Returns:
  • BasicForm
    this
BasicForm cleanDestroyed() + : + void
Removes all fields from the collection that have been destroyed.
Removes all fields from the collection that have been destroyed.
Parameters:
  • None.
Returns:
  • void
BasicForm clearInvalid() : BasicForm
Clears all invalid messages in this form.
Clears all invalid messages in this form.
Parameters:
  • None.
Returns:
  • BasicForm
    this
BasicForm doActionString/Object actionName[Object options] ) : @@ -310,38 +313,38 @@ Determines whether a Form's fields are validated in a final call to isValid prior to submission. Set to false to prevent this. If undefined, pre-submission field validation is performed.
Returns:
BasicForm enableBubbleString/Array events ) : - void
Enables events fired by this Observable to bubble up an owner hierarchy by calling -this.getBubbleTarget() if present...

Enables events fired by this Observable to bubble up an owner hierarchy by calling -this.getBubbleTarget() if present. There is no implementation in the Observable base class.

-

This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default -implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to -access the required target more quickly.

-

Example:

Ext.override(Ext.form.Field, {
-    //  Add functionality to Field's initComponent to enable the change event to bubble

-    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
-        this.enableBubble('change');
-    }),
-
-    //  We know that we want Field's events to bubble directly to the FormPanel.

-    getBubbleTarget : function() {
-        if (!this.formPanel) {
-            this.formPanel = this.findParentByType('form');
-        }
-        return this.formPanel;
-    }
-});
-
-var myForm = new Ext.formPanel({
-    title: 'User Details',
-    items: [{
-        ...
-    }],
-    listeners: {
-        change: function() {
-            // Title goes red if form has been modified.

-            myForm.header.setStyle('color', 'red');
-        }
-    }
+                                        void
Enables events fired by this Observable to bubble up an owner hierarchy by calling +this.getBubbleTarget() if present....

Enables events fired by this Observable to bubble up an owner hierarchy by calling +this.getBubbleTarget() if present. There is no implementation in the Observable base class.

+

This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default +implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to +access the required target more quickly.

+

Example:

Ext.override(Ext.form.Field, {
+    //  Add functionality to Field's initComponent to enable the change event to bubble
+    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+        this.enableBubble('change');
+    }),
+
+    //  We know that we want Field's events to bubble directly to the FormPanel.
+    getBubbleTarget : function() {
+        if (!this.formPanel) {
+            this.formPanel = this.findParentByType('form');
+        }
+        return this.formPanel;
+    }
+});
+
+var myForm = new Ext.formPanel({
+    title: 'User Details',
+    items: [{
+        ...
+    }],
+    listeners: {
+        change: function() {
+            // Title goes red if form has been modified.
+            myForm.header.setStyle('color', 'red');
+        }
+    }
 });
Parameters:
  • events : String/Array
    The event name to bubble, or an Array of event names.
Returns:
  • void
Observable findFieldString id ) : Field
Find a Ext.form.Field in this form.
Find a Ext.form.Field in this form.
Parameters:
  • id : String
    The value to search for (specify either a id,