The default for the configuration option selModel is not Ext.grid.RowSelectionModel but: Ext.grid.CellSelectionModel
The default for the configuration option selModel is not Ext.grid.RowSelectionModel but: Ext.grid.CellSelectionModel
In Element.addListener, in hte last "shorthand syntax" sample:
a comma is missing after onMouseOut.Code:el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut scope: this });
Also, I guess both in this sample and in the previous one, apostrophe can be removed from the event names, as they are specified as object attributes and not as string parameters.
Regards,
splintor
Ext.data.Store's baseParams should be marked as a public property indicating that it can be changed after it has been instantiated.
Last edited by aconran; 20 Apr 2008 at 2:09 PM. Reason: fixed.
Aaron Conran
@aconran
links to source code eg combo.js seem to be redirected to the homepage...
Expanding on another doc bug note in this thread...
In the addListener examples under Element there are a bunch of commas missing after the fn declares. (this.onClick, this.onMouseOver, this.onMouseOut)
*** Current Version ***
*** Fixed Version***Code:el.on({ 'click' : { fn: this.onClick scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver scope: this }, 'mouseout' : { fn: this.onMouseOut scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut scope: this });
Code:Currently: el.on({ 'click' : { fn: this.onClick, scope: this, delay: 100 }, 'mouseover' : { fn: this.onMouseOver, scope: this }, 'mouseout' : { fn: this.onMouseOut, scope: this } }); Or a shorthand syntax: Code: el.on({ 'click' : this.onClick, 'mouseover' : this.onMouseOver, 'mouseout' : this.onMouseOut, scope: this });
Last edited by mystix; 20 Nov 2007 at 5:25 PM. Reason: nice catch. fixed in SVN. use [CODE][/CODE] tags though.
Provider's documentation needs to be updated from 1.x -> 2.0.
Aaron Conran
@aconran
[Ext2.0][Build 1423]
tabpanel docu misses the 'closable' and 'iconCls' config options.
XTemplate example for {[ ]} inline code shows access to data values directly, but you actually have to use values.field. I'm guessing it's a documentation error, though I suppose it could be the implementation that's wrong. See the "company" line in the documentation example below:
Should be:Code:var tpl = new Ext.XTemplate( '<p>Name: {name}</p>', '<p>Company: {[company.toUpperCase() + ', ' + title]}</p>', '<p>Kids: ', '<tpl for="kids">', '<div class="{[xindex % 2 === 0 ? "even" : "odd"]}">, '{name}', '</div>', '</tpl></p>' ); tpl.overwrite(panel.body, data);
Code:var tpl = new Ext.XTemplate( '<p>Name: {name}</p>', '<p>Company: {[values.company.toUpperCase() + ', ' + values.title]}</p>', '<p>Kids: ', '<tpl for="kids">', '<div class="{[xindex % 2 === 0 ? "even" : "odd"]}">, '{name}', '</div>', '</tpl></p>' ); tpl.overwrite(panel.body, data);
[Build 1425] The example on JSONReader`s Metadata/Metachange is not showing up in docs. It's in the JSONReader.js file (Lines 35-80). Was this added after the latest public build with which the current docs were created?
Greets,
Frank