X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.Template.html?ds=inline diff --git a/docs/output/Ext.Template.html b/docs/output/Ext.Template.html index d2352379..24821be2 100644 --- a/docs/output/Ext.Template.html +++ b/docs/output/Ext.Template.html @@ -1,28 +1,28 @@ -
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.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.
-
-For a list of available format functions, see Ext.util.Format. | Template | |
re : RegExp The regular expression used to match template variables.
+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 )
- An instance of this class may be created by passing to the constructor either
+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:
join('') .
{
compiled: true, // compile immediately
disableFormats: true // See Notes below.
- }
+ }
);
Notes:
join('') .
when no formatting is required.
Parameters:
| Template | |
Template.from( String/HTMLElement el , Object config )
- :
- Ext.Template<static> Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. <static> Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. Parameters:
| Template | |
append( Mixed el , Object/Array values , [Boolean returnElement ] )
- :
- HTMLElement/Ext.ElementApplies the supplied values to the template and appends
-the new node(s) to the specified el.
+ Parameters:
| Template | |
Template.from( String/HTMLElement el , Object config )
+ :
+ Ext.Template<static> Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. <static> Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. Parameters:
| Template | |
append( Mixed el , Object/Array values , [Boolean returnElement ] )
+ :
+ HTMLElement/Ext.ElementApplies the supplied values to the template and appends
+the new node(s) to the specified el.
For example usage see th... Applies the supplied values to the template and appends
the new node(s) to the specified el .
For example usage see the constructor. Parameters:
| Template | |
apply( Object/Array values )
- :
- StringAlias for applyTemplate
+or an object (i.e. {foo: 'bar'} ).returnElement : Boolean(optional) true to return an Ext.Element (defaults to undefined)
| Template | |
apply( Object/Array values )
+ :
+ StringAlias for applyTemplate
Returns an HTML fragment of this template with the specified values applied. Alias for applyTemplate
Returns an HTML fragment of this template with the specified values applied.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 ] )
- :
- HTMLElement/Ext.ElementApplies the supplied values to the template and inserts the new node(s) before el. Applies the supplied values to the template and inserts the new node(s) before el. Parameters:
| Template | |
insertFirst( Mixed el , Object/Array values , [Boolean returnElement ] )
- :
- HTMLElement/Ext.ElementApplies the supplied values to the template and inserts the new node(s) as the first child of el. Applies the supplied values to the template and inserts the new node(s) as the first child of el. Parameters:
| Template | |
overwrite( Mixed el , Object/Array values , [Boolean returnElement ] )
- :
- HTMLElement/Ext.ElementApplies the supplied values to the template and overwrites the content of el with the new node(s). Applies the supplied values to the template and overwrites the content of el with the new node(s). Parameters:
| Template | |
set( String html , [Boolean compile ] )
- :
+or an object (i.e. {foo: 'bar'} ).Returns:
| 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 ] )
+ :
+ HTMLElement/Ext.ElementApplies the supplied values to the template and inserts the new node(s) before el. Applies the supplied values to the template and inserts the new node(s) before el. Parameters:
| Template | |
insertFirst( Mixed el , Object/Array values , [Boolean returnElement ] )
+ :
+ HTMLElement/Ext.ElementApplies the supplied values to the template and inserts the new node(s) as the first child of el. Applies the supplied values to the template and inserts the new node(s) as the first child of el. Parameters:
| Template | |
overwrite( Mixed el , Object/Array values , [Boolean returnElement ] )
+ :
+ HTMLElement/Ext.ElementApplies the supplied values to the template and overwrites the content of el with the new node(s). Applies the supplied values to the template and overwrites the content of el with the new node(s). Parameters:
| Template | |
set( String html , [Boolean compile ] )
+ :
Ext.TemplateSets the HTML used as the template and optionally compiles it. Sets the HTML used as the template and optionally compiles it. Parameters:
| Template |