O'Reilly logo

Ext JS 4 Web Application Development Cookbook by Stuart Ashworth, Andrew Duncan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Ext.XTemplate member functions

Ext.XTemplates can be configured to contain functions and properties that are enclosed within the scope of the template itself. These functions can be used to encapsulate presentation logic, formatting, and other simple template data processing.

We are going to demonstrate how these functions can be included in an XTemplate's definition and how to access them within our template's code.

We will do this by building upon the example that we created in the previous recipe. Our goal is to highlight each of the rows that are deemed by our manager as high priority, in our situation this means any bug with a severity rating of 4 or 5.

How to do it...

  1. We begin by creating our sample data and our basic Ext.XTemplate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required