PDA

View Full Version : where can I get tpl's documents



zzsnake
3 Aug 2009, 7:13 PM
I want to find tpl's documents.
such as

private native String getTemplate() /*-{
return ['<tpl for=".">',
'<div class="thumb-wrap" id="{name}" style="border: 1px solid white">',
'<div class="thumb"><img src="{path}" title="{name}"></div>',
'<span>{shortName}</span></div>',
'</tpl>'].join("");
}-*/;

where can I get it.
thanks

pstinghua
4 Aug 2009, 2:00 AM
http://www.extjs.com/deploy/dev/docs/

look the XTepmlate class

sven
4 Aug 2009, 2:02 AM
You can write them yourself. You define simple html there.

Arno.Nyhm
6 Aug 2009, 6:11 AM
syntax is described here:

http://www.extjs.com/deploy/dev/docs/source/XTemplate.html#cls-Ext.XTemplate
(scroll a little bit down)

zzsnake
6 Aug 2009, 6:21 AM
thank you all