X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.MasterTemplate.json;h=f8dac8a9c884eed35c5ab6a09b805b5e3186dfac;hb=23a0c8c1c7942f78ddb512df49e0ff19f12b06fa;hp=0728237cfe41cf3bd73cd3c8cfe4a1673c8a2af1;hpb=7811bdad238a16fa881fa617d9c4e53da624968e;p=roojs1 diff --git a/docs/symbols/Roo.MasterTemplate.json b/docs/symbols/Roo.MasterTemplate.json index 0728237cfe..f8dac8a9c8 100644 --- a/docs/symbols/Roo.MasterTemplate.json +++ b/docs/symbols/Roo.MasterTemplate.json @@ -3,6 +3,7 @@ "augments" : [ "Roo.Template" ], + "childClasses" : [], "desc" : "Provides a template that can have child templates. The syntax is:\n
\nvar t = new Roo.MasterTemplate(\n\t'<select name=\"{name}\">',\n\t\t'<tpl name=\"options\"><option value=\"{value:trim}\">{text:ellipsis(10)}</option></tpl>',\n\t'</select>'\n);\nt.add('options', {value: 'foo', text: 'bar'});\n// or you can add multiple child elements in one shot\nt.addAll('options', [\n    {value: 'foo', text: 'bar'},\n    {value: 'foo2', text: 'bar2'},\n    {value: 'foo3', text: 'bar3'}\n]);\n// then append, applying the master template values\nt.append('my-form', {name: 'my-select'});\n
\nA name attribute for the child template is not required if you have only one child\ntemplate or you want to refer to them by index.", "isSingleton" : false, "isStatic" : false,