Class YAHOO.ext.DomHelper.Template

Object
   |
   +--YAHOO.ext.DomHelper.Template

class YAHOO.ext.DomHelper.Template


Represents an HTML fragment template
Defined in DomHelper.js


Constructor Summary
YAHOO.ext.DomHelper.Template (<String> html)
  
 
Method Summary * Parameter types in italic indicate optional parameters
 HTMLElement append(<HTMLElement> el, <Object> values)
   Applies the supplied values to the template and append the new node(s) to el
 String applyTemplate(<Object> values)
   Returns an HTML fragment of this template with the specified values applied
 void compile()
   Compiles the template into an internal function, eliminating the RegEx overhead
 HTMLElement insertAfter(<HTMLElement> el, <Object> values)
   Applies the supplied values to the template and inserts the new node(s) after el
 HTMLElement insertBefore(<HTMLElement> el, <Object> values)
   Applies the supplied values to the template and inserts the new node(s) before el
 HTMLElement overwrite(<HTMLElement> el, <Object> values)
   Applies the supplied values to the template and overwrites the content of el with the new node(s)

Constructor Detail

YAHOO.ext.DomHelper.Template

YAHOO.ext.DomHelper.Template(<String> html)

Method Detail

append

HTMLElement append(<HTMLElement> el, <Object> values)

applyTemplate

String applyTemplate(<Object> values)

compile

void compile()

insertAfter

HTMLElement insertAfter(<HTMLElement> el, <Object> values)

insertBefore

HTMLElement insertBefore(<HTMLElement> el, <Object> values)

overwrite

HTMLElement overwrite(<HTMLElement> el, <Object> values)


Documentation generated by JSDoc on Sat Oct 14 06:07:10 2006