PDA

View Full Version : how to apply two format functions to a field in extjs template



SCYForce
13 Nov 2009, 4:27 PM
Hey,

I want to do something like this:


var linkTpl = new Ext.Template(
'<a href="#" title="Label} {caseNumber}: {caseSubject:htmlEncode}">',
'<span class="caseSubTxt">{caseSubject:htmlEncode ellipsis(10)}</span>',
'</a>'
);


I want to apply htmlEncode and ellipsis to case subject, how can I do that? Thanks!