For example usage {@link #XTemplate see the constructor}.
- *
+ *
+ *
For example usage {@link #XTemplate see the constructor}.
+ *
* @constructor
* The {@link Ext.Template#Template Ext.Template constructor} describes
* the acceptable parameters to pass to the constructor. The following
* examples demonstrate all of the supported features.
- *
+ *
*
- *
- *
Sample Data
+ *
+ *
Sample Data
*
*
This is the data object used for reference in each code example:
*
@@ -71,9 +72,9 @@ var data = {
*
*
*
- *
- *
- *
Auto filling of arrays
+ *
+ *
+ *
Auto filling of arrays
*
*
The tpl tag and the for operator are used
* to process the provided data object:
@@ -144,9 +145,9 @@ tpl.overwrite(panel.body, data);
*
*
Conditional processing with basic comparison operators
*
*
The tpl tag and the if operator are used
* to provide conditional checks for deciding whether or not to render specific
@@ -181,9 +182,9 @@ tpl.overwrite(panel.body, data);
*
*
*
- *
- *
- *
Basic math support
+ *
+ *
+ *
Basic math support
*
*
The following basic math operators may be applied directly on numeric
* data values:
Execute arbitrary inline code with special built-in template variables
+ *
+ *
Execute arbitrary inline code with special built-in template variables
*
*
Anything between {[ ... ]} is considered code to be executed
* in the scope of the template. There are some special variables available in that code:
@@ -239,8 +240,8 @@ tpl.overwrite(panel.body, data);
*
*
*
- *
- *
Template member functions
+ *
+ *
Template member functions
*
*
One or more member functions can be specified in a configuration
* object passed into the XTemplate constructor for more complex processing: