X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..05ce1c11e98b33f14ddee184493bd5a60dc947e2:/docs/source/Template-more.html diff --git a/docs/source/Template-more.html b/docs/source/Template-more.html index 3349efc9..3303df20 100644 --- a/docs/source/Template-more.html +++ b/docs/source/Template-more.html @@ -1,14 +1,53 @@ - - - The source code - - - - -
/**
+
+
+  The source code
+    
+    
+
+
+    
/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+/**
  * @class Ext.Template
  */
 Ext.apply(Ext.Template.prototype, {
+    
/** + * @cfg {Boolean} disableFormats Specify true to disable format + * functions in the template. If the template does not contain + * {@link Ext.util.Format format functions}, setting disableFormats + * to true will reduce {@link #apply} time. Defaults to false. + *

+var t = new Ext.Template(
+    '<div name="{id}">',
+        '<span class="{cls}">{name} {value}</span>',
+    '</div>',
+    {
+        compiled: true,      // {@link #compile} immediately
+        disableFormats: true // reduce {@link #apply} time since no formatting
+    }    
+);
+     * 
+ * For a list of available format functions, see {@link Ext.util.Format}. + */ + disableFormats : false, +
/** + * See {@link #disableFormats}. + * @type Boolean + * @property disableFormats + */ + +
/** + * The regular expression used to match template variables + * @type RegExp + * @property + * @hide repeat doc + */ + re : /\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g, +
/** * Returns an HTML fragment of this template with the specified values applied. * @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'}) @@ -51,21 +90,6 @@ Ext.apply(Ext.Template.prototype, { return me.html.replace(me.re, fn); }, -
/** - * true to disable format functions (defaults to false) - * @type Boolean - * @property - */ - disableFormats : false, - -
/** - * The regular expression used to match template variables - * @type RegExp - * @property - * @hide repeat doc - */ - re : /\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g, -
/** * Compiles the template into an internal function, eliminating the RegEx overhead. * @return {Ext.Template} this @@ -113,6 +137,6 @@ Ext.apply(Ext.Template.prototype, { return this[fnName](value, allValues); } }); -Ext.Template.prototype.apply = Ext.Template.prototype.applyTemplate;
- +Ext.Template.prototype.apply = Ext.Template.prototype.applyTemplate;
+ \ No newline at end of file