X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..b37ceabb82336ee82757cd32efe353cfab8ec267:/docs/output/Ext.Template.html diff --git a/docs/output/Ext.Template.html b/docs/output/Ext.Template.html index 9f0a5628..f7cb9cf8 100644 --- a/docs/output/Ext.Template.html +++ b/docs/output/Ext.Template.html @@ -1,4 +1,4 @@ -
Package: | Ext |
Defined In: | Template.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 ).
@@ -15,13 +15,13 @@ to true will reduce // compile immediately
disableFormats: true // reduce time since no formatting
- }
+ }
);
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 ] )
:
|