Click to search on your search term.
Subscribe to Fig Leaf Tutorials

Need help with a project? Contact us at
From code reviews to project "jumpstarts" and full life-cycle development, we've got you covered!
Check out our case studies!
Follow us on Twitter!
Click here to join our Facebook group!

Ready to upgrade your skills? Try these instructor-led classes in Washington, DC:

Performing Basic Calculations in an XTemplate

Page of 168

You can apply the basic math operands (+,-,/,*) directly on fields as illustrated by the following example:


var tpl = Ext.create('Ext.XTemplate', 
    ', '', '
  • {lName}, {fName}
    Bonus: {bonus * 1000}
  • ', '
    ', '
' ); var markup = tpl.apply([ {fName: 'Steve', lName: 'Drucker', bonus: 5}, {fName: 'Jason', lName: 'Perry', bonus: 7}, {fName: 'Tracey',lName: 'Dunn', bonus: 8} ] );
Page of 168
comments powered by Disqus