2 "name" : "Roo.DomHelper",
7 "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>.",
12 "isBuilderTop" : false,
13 "memberOf" : "DomHelper",
25 "name" : "insertHtml",
27 "desc" : "Inserts an HTML fragment into the Dom",
28 "sig" : "(where, el, html)",
32 "isConstructor" : false,
44 "desc" : "Where to insert the html in relation to el - beforeBegin, afterBegin, beforeEnd, afterEnd.",
49 "type" : "HTMLElement",
50 "desc" : "The context element",
56 "desc" : "The HTML fragmenet",
63 "type" : "HTMLElement",
64 "desc" : "The new node"
69 "name" : "createTemplate",
71 "desc" : "Creates a new Roo.DomHelper.Template from the Dom object spec",
76 "isConstructor" : false,
88 "desc" : "The Dom object spec (and children)",
95 "type" : "Roo.DomHelper.Template",
96 "desc" : "The new template"
101 "name" : "insertAfter",
103 "desc" : "Creates new Dom element(s) and inserts them after el",
104 "sig" : "(el, o, returnElement)",
108 "isConstructor" : false,
119 "type" : "String/HTMLElement/Element",
120 "desc" : "The context element",
126 "desc" : "The Dom object spec (and children)",
130 "name" : "returnElement",
132 "desc" : "(optional) true to return a Roo.Element",
139 "type" : "HTMLElement/Roo.Element",
140 "desc" : "The new node"
145 "name" : "insertFirst",
147 "desc" : "Creates new Dom element(s) and inserts them as the first child of el",
148 "sig" : "(el, o, returnElement)",
152 "isConstructor" : false,
163 "type" : "String/HTMLElement/Element",
164 "desc" : "The context element",
169 "type" : "Object/String",
170 "desc" : "The Dom object spec (and children) or raw HTML blob",
174 "name" : "returnElement",
176 "desc" : "(optional) true to return a Roo.Element",
183 "type" : "HTMLElement/Roo.Element",
184 "desc" : "The new node"
191 "desc" : "Creates new Dom element(s) and appends them to el",
192 "sig" : "(el, o, returnElement)",
196 "isConstructor" : false,
207 "type" : "String/HTMLElement/Element",
208 "desc" : "The context element",
213 "type" : "Object/String",
214 "desc" : "The Dom object spec (and children) or raw HTML blob",
218 "name" : "returnElement",
220 "desc" : "(optional) true to return a Roo.Element",
227 "type" : "HTMLElement/Roo.Element",
228 "desc" : "The new node"
233 "name" : "applyStyles",
235 "desc" : "Applies a style specification to an element",
236 "sig" : "(el, styles)",
240 "isConstructor" : false,
251 "type" : "String/HTMLElement",
252 "desc" : "The element to apply styles to",
257 "type" : "String/Object/Function",
258 "desc" : "A style specification string eg \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.",
267 "desc" : "Updates the first element with the spec from the o (replacing if necessary)\nThis iterates through the children, and updates attributes / children etc..",
272 "isConstructor" : false,
283 "type" : "String/HTMLElement/Element",
284 "desc" : "The context element",
289 "type" : "Object/String",
290 "desc" : "The Dom object spec (and children) or raw HTML blob",
299 "desc" : "Returns the markup for the passed Element(s) config",
304 "isConstructor" : false,
316 "desc" : "The Dom object spec (and children)",
329 "name" : "overwrite",
331 "desc" : "Creates new Dom element(s) and overwrites the contents of el with them",
332 "sig" : "(el, o, returnElement)",
336 "isConstructor" : false,
347 "type" : "String/HTMLElement/Element",
348 "desc" : "The context element",
353 "type" : "Object/String",
354 "desc" : "The Dom object spec (and children) or raw HTML blob",
358 "name" : "returnElement",
360 "desc" : "(optional) true to return a Roo.Element",
367 "type" : "HTMLElement/Roo.Element",
368 "desc" : "The new node"
373 "name" : "insertBefore",
375 "desc" : "Creates new Dom element(s) and inserts them before el",
376 "sig" : "(el, o, returnElement)",
380 "isConstructor" : false,
391 "type" : "String/HTMLElement/Element",
392 "desc" : "The context element",
397 "type" : "Object/String",
398 "desc" : "The Dom object spec (and children) or raw HTML blob",
402 "name" : "returnElement",
404 "desc" : "(optional) true to return a Roo.Element",
411 "type" : "HTMLElement/Roo.Element",
412 "desc" : "The new node"