| Package: | Ext |
| Defined In: | XTemplate.js |
| Class: | XTemplate |
| Extends: | Object |
| Method | Defined By | |
|---|---|---|
XTemplate( String/Array html )
Parameters:
|
XTemplate | |
XTemplate.from( String/HTMLElement el ) : s <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:
|
XTemplate | |
|
apply() : void Alias of applyTemplate.
Alias of applyTemplate.
Parameters:
|
XTemplate | |
applyTemplate( Object values ) : String Returns an HTML fragment of this template with the specified values applied.
Returns an HTML fragment of this template with the specified values applied.
Parameters:
|
XTemplate | |
|
compile() : Function Compile the template to a function for optimized performance. Recommended if the template will be used frequently.
Compile the template to a function for optimized performance. Recommended if the template will be used frequently.
Parameters:
|
XTemplate | |