-
15 Jun 2011 8:27 AM #51
Ext.view.AbstractView
*emptyText: Has the note that deferEmptyText needs to be set to true if the data is locally loaded for emptyText to be shown. This isn't the case.
-
15 Jun 2011 10:50 AM #52
API DOCS for Component, xtype for ProgressBar is 'progressbar' not 'progress'
API DOCS for Component, xtype for ProgressBar is 'progressbar' not 'progress'
API DOCS for Component, xtype for ProgressBar is 'progressbar' not 'progress'

http://docs.sencha.com/ext-js/4-0/#/api/Ext.Component
the duration of frame effect is in millisecs, not in seconds
http://docs.sencha.com/ext-js/4-0/#/api/Ext.Element-method-frameLast edited by 44gatti; 30 Jun 2011 at 3:31 PM. Reason: small bug
-
15 Jun 2011 12:01 PM #53
Incorrect MVC Architecture Bug
-
16 Jun 2011 7:43 AM #54
No JSON example of http://dev.sencha.com/deploy/ext-4.0.../xml-form.html
The XML example says:
Unfortunately, there is no such demo.For a similar example using JSON rather than XML, see the JSON Form example
Since this is the ONLY form on the entire demo site that ACTUALLY submits a form, it sure would be nice to have a working JSON example.
-
21 Jun 2011 12:07 PM #55
Sorry for so little feedback in this thread. Thanks to everybody for reporting, it's been a great help in making the docs better.
The bugs mentioned so far have mostly been fixed, remaining issues have been noted.
Things are getting better, but a lot of holes in the docs still remain, so keep these posts coming
-
22 Jun 2011 2:13 AM #56
On Ext.form.field.ComboBox the following are private and shouldn't be.... they are really useful methods.
Code:/** * Find the record by searching for a specific field/value combination * Returns an Ext.data.Record or false * @private */ findRecord: function(field, value) { var ds = this.store, idx = ds.findExact(field, value); return idx !== -1 ? ds.getAt(idx) : false; }, findRecordByValue: function(value) { return this.findRecord(this.valueField, value); }, findRecordByDisplay: function(value) { return this.findRecord(this.displayField, value); },
I've also added an extra very useful method
Code:Ext.override(Ext.form.field.ComboBox, { getSelectedRecord: function() { return this.findRecordByValue(this.getValue()); } });
-
22 Jun 2011 10:47 AM #57
Please include documentation re: the ability to use "named" arguments for Ext.Direct via the use of the "params" attribute for the method description in the API.
This can be done by fully documenting Ext.direct.RemoteMethod and exposing its documentation....
Also, paramsAsHash might also provide insight that it is necessary to specific your params explicitly in your API if you want the params to be sent as a hash properly.
For example, if you specify paramsAsHash as true, but DONT specify the params in your API, then what will get send to the server is a single element array containing the hash of values..... rather than just the hash.....
-
24 Jun 2011 7:31 AM #58
Should not constructor always return this?
Should not constructor always return this?
As I understand every object in Javascript has a constructor property, that refers to the constructor function of that object. So if I just create the most simple object like:
So now I have a second object temp2 with a property name = 'temp2'. This is because the constructor function returns an new instance of temp, applying the config object. However, this code will not work:PHP Code:var temp = {};
var temp2 = temp.constructor({name: 'temp2'});
console.log(temp2);
Should not any override of constructor return the object? I refer to the documentation of Ext.Base:PHP Code:var temp = {};
temp.constructor = function () { alert('I am not a constructor anymore')};
var temp2 = temp.constructor({name: 'temp2'});
console.log(temp2);
PHP Code:Ext.define('My.own.A', {
constructor: function(test) {
alert(test);
}
});
Ext.define('My.own.B', {
extend: 'My.own.A',
constructor: function(test) {
alert(test);
this.callParent([test + 1]);
}
});
Ext.define('My.own.C', {
extend: 'My.own.B',
constructor: function() {
alert("Going to call parent's overriden constructor...");
this.callParent(arguments);
}
});
var a = new My.own.A(1); // alerts '1'
var b = new My.own.B(1); // alerts '1', then alerts '2'
var c = new My.own.C(2); // alerts "Going to call parent's overriden constructor..."
// alerts '2', then alerts '3'
-
24 Jun 2011 1:12 PM #59
Example does not run
Example does not run
This example directly copy pasted from the api doc of the class system does not work:
I get a TypeError: c is not a constructor error.PHP Code:Ext.define('My.own.Window', {
/** @readonly */
isWindow: true,
config: {
title: 'Title Here',
bottomBar: {
enabled: true,
height: 50,
resizable: false
}
},
constructor: function(config) {
this.initConfig(config);
return this;
},
applyTitle: function(title) {
if (!Ext.isString(title) || title.length === 0) {
alert('Error: Title must be a valid non-empty string');
}
else {
return title;
}
},
applyBottomBar: function(bottomBar) {
if (bottomBar && bottomBar.enabled) {
if (!this.bottomBar) {
return Ext.create('My.own.WindowBottomBar', bottomBar);
}
else {
this.bottomBar.setConfig(bottomBar);
}
}
}
});
var myWindow = Ext.create('My.own.Window', {
title: 'Hello World',
bottomBar: {
height: 60
}
});
-
26 Jun 2011 2:58 AM #60
Where is Api for Ext.form.FormPanel
Where is Api for Ext.form.FormPanel
I cannot find the api documentation for Ext.form.FormPanel. Yet, if I check Ext in for example firebug, Ext.form.FormPanel does still exist.
Ha, found it Ext.form.FormPanel is an alias for Ext.form.Panel
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote