Roo.Template
Roo.DomTemplate 

		   

Class Roo.DomTemplate

Package:Roo
Defined In: Roo/DomTemplate.js.
Class:DomTemplate
Extends: Roo.Template
An effort at a dom based template engine..

Similar to XTemplate, except it uses dom parsing to create the template..

Supported features:

Tags:


{a_variable} - output encoded.
{a_variable.format:("Y-m-d")} - call a method on the variable
{a_variable:raw} - unencoded output
{a_variable:toFixed(1,2)} - Roo.util.Format."toFixed"
{a_variable:this.method_on_template(...)} - call a method on the template object.


The tpl tag:

<div roo-for="a_variable or condition.."></div>
<div roo-if="a_variable or condition"></div>
<div roo-exec="some javascript"></div>
<div roo-name="named_template"></div>

Class Comments / Notes => [Add Your comment/notes about this class]
Config Options (Usually are also Properties)
Options Defined By
Public Properties - Has None
Public Methods
Method Defined By
 
new Roo.DomTemplate ()
Create a new Roo.DomTemplate
Create a new Roo.DomTemplate
 
Events - Has None
Documentation generated by Introspection Doc Generator on Fri Jul 13 2018 14:10:53 GMT+0800 (HKT) Based on JsDoc Toolkit