X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.util.Observable.html?ds=sidebyside diff --git a/docs/output/Ext.util.Observable.html b/docs/output/Ext.util.Observable.html index 070dc965..fe64ba87 100644 --- a/docs/output/Ext.util.Observable.html +++ b/docs/output/Ext.util.Observable.html @@ -1,4 +1,4 @@ -
Package: | Ext.util |
Defined In: | Observable.js, Observable-more.js |
Class: | Observable |
Subclasses: | Component, Direct, History, ListView.ColumnResizer, ListView.Sorter, Resizable, SplitBar, Updater, Connection, DataProxy, Node, Store, Tree, DragTracker, Provider, BasicForm, AbstractSelectionModel, ColumnModel, GridView, PropertyStore, DefaultSelectionModel, MultiSelectionModel, TreeLoader, ClickRepeater, MixedCollection, Spinner, GridFilters, GroupSummary, RowExpander, Filter |
Extends: | Object |
Package: | Ext.util |
Defined In: | Observable.js, Observable-more.js |
Class: | Observable |
Subclasses: | Component, Direct, History, Resizable, SplitBar, Updater, Connection, DataProxy, Node, Store, Tree, DragTracker, Provider, BasicForm, AbstractSelectionModel, ColumnModel, GridView, PropertyStore, ColumnResizer, Sorter, DefaultSelectionModel, MultiSelectionModel, TreeLoader, ClickRepeater, MixedCollection |
Extends: | Object |
o
: Observablefn
: Functionscope
: ObjectFunction c
)
+the event will not fire.o
: Observablefn
: Functionscope
: Objectthis
reference) in which the function is executed. Defaults to the Observable firing the event.Function c
, Object listeners
)
:
void@@ -95,8 +95,8 @@ This makes any event fired on any instance of the passed class a...
Usage:
Ext.util.Observable.observeClass(Ext.data.Connection);
Ext.data.Connection.on('beforerequest', function(con, options) {
- console.log("Ajax request made to " + options.url);
-});
c
: FunctionObservable o
)
+ console.log('Ajax request made to ' + options.url);
+});c
: Functionlisteners
: ObjectObservable o
)
:
voido
: ObservableObject|String o
, string Optional.
)
:
@@ -153,7 +153,7 @@ Or a shorthand syntax:Object events
)
+});Returns:String/Array events
)
:
voidEnables events fired by this Observable to bubble up an owner hierarchy by calling @@ -162,13 +162,13 @@ this.getBubbleTarget() if present...
Enables events fi 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');
+ // 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() {
+ // We know that we want Field's events to bubble directly to the FormPanel.
+ getBubbleTarget : function() {
if (!this.formPanel) {
this.formPanel = this.findParentByType('form');
}
@@ -183,11 +183,11 @@ access the required target more quickly.
}],
listeners: {
change: function() {
-// Title goes red if form has been modified.
- myForm.header.setStyle("color", "red");
+ // Title goes red if form has been modified.
+ myForm.header.setStyle('color', 'red');
}
}
-});
events
: ObjectString eventName
, Object... args
)
+});events
: String/ArrayString eventName
, Object... args
)
:
BooleanFires the specified event with the passed parameters (minus the event name).