X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.XTemplate.json;h=818a6ecabc1eaafe9baf018653e0796bae102c0b;hb=23a0c8c1c7942f78ddb512df49e0ff19f12b06fa;hp=e9b42a02db095498690ac38cbb984bd9ca72b80b;hpb=7811bdad238a16fa881fa617d9c4e53da624968e;p=roojs1 diff --git a/docs/symbols/Roo.XTemplate.json b/docs/symbols/Roo.XTemplate.json index e9b42a02db..818a6ecabc 100644 --- a/docs/symbols/Roo.XTemplate.json +++ b/docs/symbols/Roo.XTemplate.json @@ -3,6 +3,7 @@ "augments" : [ "Roo.Template" ], + "childClasses" : [], "desc" : "Provides a template that can have nested templates for loops or conditionals. The syntax is:\n
\nvar t = new Roo.XTemplate(\n\t'<select name=\"{name}\">',\n\t\t'<tpl for=\"options\"><option value=\"{value:trim}\">{text:ellipsis(10)}</option></tpl>',\n\t'</select>'\n);\n \n// then append, applying the master template values\n 
\n\nSupported features:\n\n Tags:\n\n
\n      {a_variable} - output encoded.\n      {a_variable.format:(\"Y-m-d\")} - call a method on the variable\n      {a_variable:raw} - unencoded output\n      {a_variable:toFixed(1,2)} - Roo.util.Format.\"toFixed\"\n      {a_variable:this.method_on_template(...)} - call a method on the template object.\n \n
\n The tpl tag:\n
\n        <tpl for=\"a_variable or condition..\"></tpl>\n        <tpl if=\"a_variable or condition\"></tpl>\n        <tpl exec=\"some javascript\"></tpl>\n        <tpl name=\"named_template\"></tpl> (experimental)\n  \n        <tpl for=\".\"></tpl> - just iterate the property..\n        <tpl for=\"..\"></tpl> - iterates with the parent (probably the template) \n
", "isSingleton" : false, "isStatic" : false,