2 "name" : "Roo.DomHelper",
5 "desc" : "Utility class for working with DOM and/or Templates. It transparently supports using HTML fragments or DOM.\nFor more information see <a href=\"http://web.archive.org/web/20071221063734/http://www.jackslocum.com/blog/2006/10/06/domhelper-create-elements-using-dom-html-fragments-or-templates/\">this blog post with examples</a>.",
9 "memberOf" : "DomHelper",
21 "name" : "insertHtml",
23 "desc" : "Inserts an HTML fragment into the Dom",
24 "sig" : "(where, el, html)",
28 "isConstructor" : false,
40 "desc" : "Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd.",
45 "type" : "HTMLElement",
46 "desc" : "The context element",
52 "desc" : "The HTML fragmenet",
59 "type" : "HTMLElement",
60 "desc" : "The new node"
65 "name" : "createTemplate",
67 "desc" : "Creates a new Roo.DomHelper.Template from the Dom object spec",
72 "isConstructor" : false,
84 "desc" : "The Dom object spec (and children)",
91 "type" : "Roo.DomHelper.Template",
92 "desc" : "The new template"
97 "name" : "insertAfter",
99 "desc" : "Creates new Dom element(s) and inserts them after el",
100 "sig" : "(el, o, returnElement)",
104 "isConstructor" : false,
115 "type" : "String/HTMLElement/Element",
116 "desc" : "The context element",
122 "desc" : "The Dom object spec (and children)",
126 "name" : "returnElement",
128 "desc" : "(optional) true to return a Roo.Element",
135 "type" : "HTMLElement/Roo.Element",
136 "desc" : "The new node"
141 "name" : "insertFirst",
143 "desc" : "Creates new Dom element(s) and inserts them as the first child of el",
144 "sig" : "(el, o, returnElement)",
148 "isConstructor" : false,
159 "type" : "String/HTMLElement/Element",
160 "desc" : "The context element",
165 "type" : "Object/String",
166 "desc" : "The Dom object spec (and children) or raw HTML blob",
170 "name" : "returnElement",
172 "desc" : "(optional) true to return a Roo.Element",
179 "type" : "HTMLElement/Roo.Element",
180 "desc" : "The new node"
187 "desc" : "Creates new Dom element(s) and appends them to el",
188 "sig" : "(el, o, returnElement)",
192 "isConstructor" : false,
203 "type" : "String/HTMLElement/Element",
204 "desc" : "The context element",
209 "type" : "Object/String",
210 "desc" : "The Dom object spec (and children) or raw HTML blob",
214 "name" : "returnElement",
216 "desc" : "(optional) true to return a Roo.Element",
223 "type" : "HTMLElement/Roo.Element",
224 "desc" : "The new node"
229 "name" : "applyStyles",
231 "desc" : "Applies a style specification to an element",
232 "sig" : "(el, styles)",
236 "isConstructor" : false,
247 "type" : "String/HTMLElement",
248 "desc" : "The element to apply styles to",
253 "type" : "String/Object/Function",
254 "desc" : "A style specification string eg \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.",
263 "desc" : "Returns the markup for the passed Element(s) config",
268 "isConstructor" : false,
280 "desc" : "The Dom object spec (and children)",
293 "name" : "overwrite",
295 "desc" : "Creates new Dom element(s) and overwrites the contents of el with them",
296 "sig" : "(el, o, returnElement)",
300 "isConstructor" : false,
311 "type" : "String/HTMLElement/Element",
312 "desc" : "The context element",
317 "type" : "Object/String",
318 "desc" : "The Dom object spec (and children) or raw HTML blob",
322 "name" : "returnElement",
324 "desc" : "(optional) true to return a Roo.Element",
331 "type" : "HTMLElement/Roo.Element",
332 "desc" : "The new node"
337 "name" : "insertBefore",
339 "desc" : "Creates new Dom element(s) and inserts them before el",
340 "sig" : "(el, o, returnElement)",
344 "isConstructor" : false,
355 "type" : "String/HTMLElement/Element",
356 "desc" : "The context element",
361 "type" : "Object/String",
362 "desc" : "The Dom object spec (and children) or raw HTML blob",
366 "name" : "returnElement",
368 "desc" : "(optional) true to return a Roo.Element",
375 "type" : "HTMLElement/Roo.Element",
376 "desc" : "The new node"