X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/api/Ext.Base.html diff --git a/docs/api/Ext.Base.html b/docs/api/Ext.Base.html deleted file mode 100644 index 57d86e0f..00000000 --- a/docs/api/Ext.Base.html +++ /dev/null @@ -1,232 +0,0 @@ -
The root of all classes created with Ext.define -All prototype and static members of this class are inherited by any other class
-Add / override static properties of this class.
- -Ext.define('My.cool.Class', {
- ...
-});
-
-My.cool.Class.addStatics({
- someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'
- method1: function() { ... }, // My.cool.Class.method1 = function() { ... };
- method2: function() { ... } // My.cool.Class.method2 = function() { ... };
-});
-
-Borrow another class' members to the prototype of this class.
- -Ext.define('Bank', {
- -money: '$$$',
-printMoney: function() {
- alert('$$$$$$$');
-}
-
-
-});
- -Ext.define('Thief', {
- -...
-
-
-});
- -Thief.borrow(Bank, ['money', 'printMoney']);
- -var steve = new Thief();
- -alert(steve.money); // alerts '$$$' -steve.printMoney(); // alerts '$$$$$$$'
-Create a new instance of this Class. -Ext.define('My.cool.Class', {
- -...
-
-
-});
- -My.cool.Class.create({
- -someConfig: true
-
-
-});
-Create aliases for existing prototype methods. Example:
- -Ext.define('My.cool.Class', {
- method1: function() { ... },
- method2: function() { ... }
-});
-
-var test = new My.cool.Class();
-
-My.cool.Class.createAlias({
- method3: 'method1',
- method4: 'method2'
-});
-
-test.method3(); // test.method1()
-
-My.cool.Class.createAlias('method5', 'method3');
-
-test.method5(); // test.method3() -> test.method1()
-
-Add methods / properties to the prototype of this class.
- -Ext.define('My.awesome.Cat', {
- constructor: function() {
- ...
- }
-});
-
- My.awesome.Cat.implement({
- meow: function() {
- alert('Meowww...');
- }
- });
-
- var kitty = new My.awesome.Cat;
- kitty.meow();
-
-Override prototype members of this class. Overridden methods can be invoked via -callOverridden
- -Ext.define('My.Cat', {
- constructor: function() {
- alert("I'm a cat!");
-
- return this;
- }
-});
-
-My.Cat.override({
- constructor: function() {
- alert("I'm going to be a cat!");
-
- var instance = this.callOverridden();
-
- alert("Meeeeoooowwww");
-
- return instance;
- }
-});
-
-var kitty = new My.Cat(); // alerts "I'm going to be a cat!"
- // alerts "I'm a cat!"
- // alerts "Meeeeoooowwww"
-
-Call the original method that was previously overridden with override
- -Ext.define('My.Cat', {
- constructor: function() {
- alert("I'm a cat!");
-
- return this;
- }
-});
-
-My.Cat.override({
- constructor: function() {
- alert("I'm going to be a cat!");
-
- var instance = this.callOverridden();
-
- alert("Meeeeoooowwww");
-
- return instance;
- }
-});
-
-var kitty = new My.Cat(); // alerts "I'm going to be a cat!"
- // alerts "I'm a cat!"
- // alerts "Meeeeoooowwww"
-
-The arguments, either an array or the arguments
object
Returns the result after calling the overridden method
-Get the current class' name in string format.
- -Ext.define('My.cool.Class', {
- constructor: function() {
- alert(this.self.getName()); // alerts 'My.cool.Class'
- }
-});
-
-My.cool.Class.getName(); // 'My.cool.Class'
-
-className
-