Class Index | File Index

Classes


Class template

A Template has a grid, the raw information generated by the preprocessor and a link to the DOM reference node
Defined in: templateLayout.compiler.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
template(selectorText, position, display, grid)
Creates a template
Field Summary
Field Attributes Field Name and Description
 
Raw display information
<static>  
template.fn
Extension point
 
Its grid, the physical representation
 
A link to the DOM reference node
 
Link to parent template.
 
Raw position information
 
CSS selector
Method Summary
Method Attributes Method Name and Description
 
insert(aTemplate)
Insert given template in this template or its children.
 
Checks if has children
 
Checks if has parent
Class Detail
template(selectorText, position, display, grid)
Creates a template
Parameters:
{string} selectorText
CSS selector
{PositionMetadata} position
raw position information
{DisplayMetadata} display
raw display information
{grid} grid
its physical structure
Field Detail
{DisplayMetadata} display
Raw display information

<static> template.fn
Extension point

{grid} grid
Its grid, the physical representation

{HTMLElement} htmlNode
A link to the DOM reference node

parentTemplate
Link to parent template. Unused

{PositionMetadata} position
Raw position information

{string} selectorText
CSS selector
Method Detail
{boolean} insert(aTemplate)
Insert given template in this template or its children. Calls grid.setTemplate()
Parameters:
aTemplate
given template
Returns:
{boolean} true if inserted, false if not

{boolean} isLeaf()
Checks if has children
Returns:
{boolean} true if has a grid value, false if not

{boolean} isRoot()
Checks if has parent
Returns:
{boolean} true if doesn't have a position value, false if not

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Feb 13 2012 12:35:32 GMT+0100 (CET)