PDA

View Full Version : Ext.DomHelper.Template or Ext.Template?



mystix
27 Feb 2007, 9:09 PM
Hi jack,

noticed you added a backwards compat statement Ext.DomHelper.Template = Ext.Template in the Template.js file.

however, in the DomHelper.js file, you used the following code:


createTemplate : function(o){
var html = createHtml(o);
return new Ext.DomHelper.Template(html);
}


shouldn't DomHelper refer to the new Ext.Template constructor instead?

TheRebelGriz
28 Feb 2007, 10:53 AM
Does anyone have nay working examples that Ext.Template that they care to share that code here ???

Thanks in advance!!

tryanDLS
28 Feb 2007, 11:34 AM
Look at the examples - feed-viewer.js, organizer.js, chooser.js all do templates.

aconran
28 Feb 2007, 5:58 PM
http://www.divergingpath.com/index.cfm/2007/2/19/Templates-Beginning-Using-Templates

aconran
1 Mar 2007, 3:05 PM
And another one that Jack had suggested on utilizing the formatting features of template:
http://www.divergingpath.com/index.cfm/2007/3/1/Ext-Utilizing-Format-features-of-Templates