<html>\r
<head>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
<title>The source code</title>\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
* @class Ext.Template\r
*/\r
Ext.apply(Ext.Template.prototype, {\r
+ <div id="cfg-Ext.Template-disableFormats"></div>/**\r
+ * @cfg {Boolean} disableFormats Specify <tt>true</tt> to disable format\r
+ * functions in the template. If the template does not contain\r
+ * {@link Ext.util.Format format functions}, setting <code>disableFormats</code>\r
+ * to true will reduce <code>{@link #apply}</code> time. Defaults to <tt>false</tt>.\r
+ * <pre><code>\r
+var t = new Ext.Template(\r
+ '<div name="{id}">',\r
+ '<span class="{cls}">{name} {value}</span>',\r
+ '</div>',\r
+ {\r
+ compiled: true, // {@link #compile} immediately\r
+ disableFormats: true // reduce <code>{@link #apply}</code> time since no formatting\r
+ } \r
+);\r
+ * </code></pre>\r
+ * For a list of available format functions, see {@link Ext.util.Format}.\r
+ */\r
+ disableFormats : false, \r
+ <div id="prop-Ext.Template-disableFormats"></div>/**\r
+ * See <code>{@link #disableFormats}</code>.\r
+ * @type Boolean\r
+ * @property disableFormats\r
+ */\r
+\r
+ <div id="prop-Ext.Template-re"></div>/**\r
+ * The regular expression used to match template variables\r
+ * @type RegExp\r
+ * @property\r
+ * @hide repeat doc\r
+ */\r
+ re : /\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,\r
+\r
<div id="method-Ext.Template-applyTemplate"></div>/**\r
* Returns an HTML fragment of this template with the specified values applied.\r
* @param {Object/Array} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})\r
return me.html.replace(me.re, fn);\r
},\r
\r
- <div id="prop-Ext.Template-disableFormats"></div>/**\r
- * <tt>true</tt> to disable format functions (defaults to <tt>false</tt>)\r
- * @type Boolean\r
- * @property\r
- */\r
- disableFormats : false, \r
- \r
- <div id="prop-Ext.Template-re"></div>/**\r
- * The regular expression used to match template variables\r
- * @type RegExp\r
- * @property\r
- * @hide repeat doc\r
- */\r
- re : /\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,\r
- \r
<div id="method-Ext.Template-compile"></div>/**\r
* Compiles the template into an internal function, eliminating the RegEx overhead.\r
* @return {Ext.Template} this\r