| java.lang.Object com.gwtext.client.core.JsObject com.gwtext.client.core.XTemplate
XTemplate | public class XTemplate extends JsObject (Code) | | A template class that supports advanced functionality like autofilling arrays, conditional processing with basic
comparison operators, sub-templates, basic math function support, special built-in template variables, inline code
execution and more. XTemplate also provides the templating mechanism built into
com.gwtext.client.widgets.DataView .
|
Method Summary | |
public String | applyTemplate(String[] values) Returns an HTML fragment of this template with the specified values applied. | public String | applyTemplate(NameValuePair[] values) Returns an HTML fragment of this template with the specified values applied. | native public void | compile() Compiles the template into an internal function, eliminating the RegEx overhead. | public String | getHtml() |
XTemplate | public XTemplate(String html)(Code) | | Create a new Template.
Parameters: html - the HTML fragment |
XTemplate | public XTemplate(String[] htmlfrags)(Code) | | Create a new Template.
Parameters: htmlfrags - the HTML fragments |
applyTemplate | public String applyTemplate(String[] values)(Code) | | Returns an HTML fragment of this template with the specified values applied. Use this method when the
params are numeric (i.e. {0})
Parameters: values - the param values the html fragment |
applyTemplate | public String applyTemplate(NameValuePair[] values)(Code) | | Returns an HTML fragment of this template with the specified values applied. Use this method when the
params are named (i.e. {foo})
Parameters: values - the param values the html fragment |
compile | native public void compile()(Code) | | Compiles the template into an internal function, eliminating the RegEx overhead.
|
Fields inherited from com.gwtext.client.core.JsObject | protected JavaScriptObject jsObj(Code)(Java Doc)
|
|
|