sync
[roojs1] / docs2 / symbols / Roo.MasterTemplate.json
diff --git a/docs2/symbols/Roo.MasterTemplate.json b/docs2/symbols/Roo.MasterTemplate.json
deleted file mode 100644 (file)
index a946f00..0000000
+++ /dev/null
@@ -1,470 +0,0 @@
-{
-  "name" : "Roo.MasterTemplate",
-  "augments" : [
-    "Roo.Template"
-  ],
-  "desc" : "Provides a template that can have child templates. The syntax is:\n<pre><code>\nvar t = new Roo.MasterTemplate(\n\t'&lt;select name=\"{name}\"&gt;',\n\t\t'&lt;tpl name=\"options\"&gt;&lt;option value=\"{value:trim}\"&gt;{text:ellipsis(10)}&lt;/option&gt;&lt;/tpl&gt;',\n\t'&lt;/select&gt;'\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</code></pre>\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,
-  "isBuiltin" : false,
-  "memberOf" : "MasterTemplate",
-  "example" : "",
-  "deprecated" : "",
-  "since" : "",
-  "see" : "",
-  "params" : [
-  ],
-  "returns" : [
-  ],
-  "config" : [
-    {
-      "name" : "html",
-      "type" : "String",
-      "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
-      "memberOf" : "Roo.Template",
-      "values" : [
-      ]
-    },
-    {
-      "name" : "url",
-      "type" : "String",
-      "desc" : "The Url to load the template from. beware if you are loading from a url, the data may not be ready if you use it instantly..\n                   it should be fixed so that template is observable...",
-      "memberOf" : "Roo.Template",
-      "values" : [
-      ]
-    }
-  ],
-  "methods" : [
-    {
-      "name" : "fill",
-      "desc" : "Applies all the passed values to a child template.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.MasterTemplate",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "name",
-          "type" : "String/Number",
-          "desc" : "(optional) The name or index of the child template",
-          "isOptional" : false
-        },
-        {
-          "name" : "values",
-          "type" : "Array",
-          "desc" : "The values to be applied to the template, this should be an array of objects.",
-          "isOptional" : false
-        },
-        {
-          "name" : "reset",
-          "type" : "Boolean",
-          "desc" : "(optional) True to reset the template first",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "MasterTemplate",
-          "desc" : "this"
-        }
-      ]
-    },
-    {
-      "name" : "add",
-      "desc" : "Applies the passed values to a child template.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.MasterTemplate",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "name",
-          "type" : "String/Number",
-          "desc" : "(optional) The name or index of the child template",
-          "isOptional" : false
-        },
-        {
-          "name" : "values",
-          "type" : "Array/Object",
-          "desc" : "The values to be applied to the template",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "MasterTemplate",
-          "desc" : "this"
-        }
-      ]
-    },
-    {
-      "name" : "from",
-      "desc" : "Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. e.g.\nvar tpl = Roo.MasterTemplate.from('element-id');",
-      "isStatic" : true,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.MasterTemplate",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "el",
-          "type" : "String/HTMLElement",
-          "desc" : "",
-          "isOptional" : false
-        },
-        {
-          "name" : "config",
-          "type" : "Object",
-          "desc" : "",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-      ]
-    },
-    {
-      "name" : "reset",
-      "desc" : "Resets the template for reuse",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.MasterTemplate",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "MasterTemplate",
-          "desc" : "this"
-        }
-      ]
-    },
-    {
-      "name" : "addAll",
-      "desc" : "Alias for fill().",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.MasterTemplate",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-      ],
-      "returns" : [
-      ]
-    },
-    {
-      "name" : "insertFirst",
-      "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "el",
-          "type" : "String/HTMLElement/Roo.Element",
-          "desc" : "The context element",
-          "isOptional" : false
-        },
-        {
-          "name" : "values",
-          "type" : "Object",
-          "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
-          "isOptional" : false
-        },
-        {
-          "name" : "returnElement",
-          "type" : "Boolean",
-          "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "HTMLElement/Roo.Element",
-          "desc" : "The new node or Element"
-        }
-      ]
-    },
-    {
-      "name" : "overwrite",
-      "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "el",
-          "type" : "String/HTMLElement/Roo.Element",
-          "desc" : "The context element",
-          "isOptional" : false
-        },
-        {
-          "name" : "values",
-          "type" : "Object",
-          "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
-          "isOptional" : false
-        },
-        {
-          "name" : "returnElement",
-          "type" : "Boolean",
-          "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "HTMLElement/Roo.Element",
-          "desc" : "The new node or Element"
-        }
-      ]
-    },
-    {
-      "name" : "insertBefore",
-      "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "el",
-          "type" : "String/HTMLElement/Roo.Element",
-          "desc" : "The context element",
-          "isOptional" : false
-        },
-        {
-          "name" : "values",
-          "type" : "Object",
-          "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
-          "isOptional" : false
-        },
-        {
-          "name" : "returnElement",
-          "type" : "Boolean",
-          "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "HTMLElement/Roo.Element",
-          "desc" : "The new node or Element"
-        }
-      ]
-    },
-    {
-      "name" : "applyTemplate",
-      "desc" : "Returns an HTML fragment of this template with the specified values applied.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "values",
-          "type" : "Object",
-          "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "String",
-          "desc" : "The HTML fragment"
-        }
-      ]
-    },
-    {
-      "name" : "compile",
-      "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "Roo.Template",
-          "desc" : "this"
-        }
-      ]
-    },
-    {
-      "name" : "set",
-      "desc" : "Sets the HTML used as the template and optionally compiles it.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "html",
-          "type" : "String",
-          "desc" : "",
-          "isOptional" : false
-        },
-        {
-          "name" : "compile",
-          "type" : "Boolean",
-          "desc" : "(optional) True to compile the template (defaults to undefined)",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "Roo.Template",
-          "desc" : "this"
-        }
-      ]
-    },
-    {
-      "name" : "insertAfter",
-      "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "el",
-          "type" : "String/HTMLElement/Roo.Element",
-          "desc" : "The context element",
-          "isOptional" : false
-        },
-        {
-          "name" : "values",
-          "type" : "Object",
-          "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
-          "isOptional" : false
-        },
-        {
-          "name" : "returnElement",
-          "type" : "Boolean",
-          "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "HTMLElement/Roo.Element",
-          "desc" : "The new node or Element"
-        }
-      ]
-    },
-    {
-      "name" : "append",
-      "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-        {
-          "name" : "el",
-          "type" : "String/HTMLElement/Roo.Element",
-          "desc" : "The context element",
-          "isOptional" : false
-        },
-        {
-          "name" : "values",
-          "type" : "Object",
-          "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
-          "isOptional" : false
-        },
-        {
-          "name" : "returnElement",
-          "type" : "Boolean",
-          "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
-          "isOptional" : false
-        }
-      ],
-      "returns" : [
-        {
-          "name" : "",
-          "type" : "HTMLElement/Roo.Element",
-          "desc" : "The new node or Element"
-        }
-      ]
-    },
-    {
-      "name" : "apply",
-      "desc" : "Alias for {@link #applyTemplate}",
-      "isStatic" : false,
-      "isConstructor" : false,
-      "isPrivate" : false,
-      "memberOf" : "Roo.Template",
-      "example" : "",
-      "deprecated" : "",
-      "since" : "",
-      "see" : "",
-      "params" : [
-      ],
-      "returns" : [
-      ]
-    }
-  ],
-  "events" : [
-  ]
-}
\ No newline at end of file