X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..b37ceabb82336ee82757cd32efe353cfab8ec267:/docs/output/Ext.Template.html diff --git a/docs/output/Ext.Template.html b/docs/output/Ext.Template.html index 97ae6d11..f7cb9cf8 100644 --- a/docs/output/Ext.Template.html +++ b/docs/output/Ext.Template.html @@ -1,27 +1,27 @@ -
Package: | Ext |
Defined In: | Template.js, Template-more.js |
Class: | Template |
Subclasses: | XTemplate |
Extends: | Object |
Represents an HTML fragment template. Templates may be precompiled +
Package: | Ext |
Defined In: | Template-more.js |
Class: | Template |
Subclasses: | XTemplate |
Extends: | Object |
Represents an HTML fragment template. Templates may be precompiled for greater performance.
For example usage see the constructor.
Config Options | Defined By | |
---|---|---|
compiled : Boolean Specify true to compile the template
immediately (see compile ).
-Defaults to false. | Template | |
disableFormats : Boolean Specify true to disable format
-functions in the template. If the template does not contain
-format functions, settin... Specify true to disable format
-functions in the template. If the template does not contain
-format functions, setting disableFormats
-to true will reduce apply time. Defaults to false.
-
+Defaults to false. | Template | |
disableFormats : Boolean Specify true to disable format
+functions in the template. If the template does not contain
+format functions, setting ... Specify true to disable format
+functions in the template. If the template does not contain
+format functions, setting disableFormats
+to true will reduce apply time. Defaults to false.
+
For a list of available format functions, see Ext.util.Format. | Template | |
re : RegExp The regular expression used to match template variables.
Defaults to:re : /\{([\w-]+)\}/g ... The regular expression used to match template variables.
Defaults to:
| Template |
Property | Defined By | |
---|---|---|
disableFormats : Boolean See disableFormats . | Template | |
re : RegExp See re . | Template |
Method | Defined By | |
---|---|---|
Template( Mixed config )
+re : /\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g // for Ext JS | Template |
Property | Defined By | |
---|---|---|
disableFormats : Boolean See disableFormats . | Template | |
re : RegExp See re . | Template |
Method | Defined By | |
---|---|---|
Template( Mixed config )
An instance of this class may be created by passing to the constructor either
a single argument, or multiple argument... An instance of this class may be created by passing to the constructor either
a single argument, or multiple arguments:
@@ -52,7 +52,7 @@ Multiple arguments will be combined with join('') .
{
compiled: true, // compile immediately
disableFormats: true // See Notes below.
- }
+ }
);
Notes:
{foo: 'bar'} ).retu
String | Template | |
insertAfter( Mixed el , Object/Array values , [Boolean returnElement ] )
+or an object (i.e. {foo: 'bar'} ).Returns:
| Template | |
applyTemplate( Object/Array values )
+ :
+ StringReturns an HTML fragment of this template with the specified values applied. Returns an HTML fragment of this template with the specified values applied.Parameters:
| Template | |
compile()
+ :
+ Ext.Template Compiles the template into an internal function, eliminating the RegEx overhead. Compiles the template into an internal function, eliminating the RegEx overhead. Parameters:
| Template | |
insertAfter( Mixed el , Object/Array values , [Boolean returnElement ] )
:
HTMLElement/Ext.ElementApplies the supplied values to the template and inserts the new node(s) after el. Applies the supplied values to the template and inserts the new node(s) after el. Parameters:
| Template | |
insertBefore( Mixed el , Object/Array values , [Boolean returnElement ] )
:
|