Can someone give me an example of how to use XTemplate in Extjs to include a specific css class?
<tpl if="total > 5000">
yellow css
<tpl else>
red css
</tpl>
edit: I have something like this
new Ext.XTemplate('<span style="display:inline-block; margin-right: 730px;"">' + title + ' ({count}) </span>',
'<span ',
'<tpl if="priceTotal > 5000"> style="color:black;" class="x-form-item-label x-form-warning"</tpl>',
'> {priceTotalLabel}: {priceTotal}',
'</span>'
);
I want to replace the value 5000 with a value from a variable, so taht it's not hardcoded, how can I do this?