Class grid
Template grid, represented as a tabular structure
Defined in: templateLayout.compiler.js.
Constructor Attributes | Constructor Name and Description |
---|---|
grid(rows, options)
Creates a template grid
|
Field Attributes | Field Name and Description |
---|---|
Number of columns
|
|
Hash table like structure that stores nested Template objects.
|
|
<static> |
grid.fn
Extension point
|
minimums columns widths
|
|
preferred columns widths
|
|
Number of rows
|
|
Template rows
|
|
columns widths
|
Method Attributes | Method Name and Description |
---|---|
Gets the "@" slot OR topmost left slot
|
|
hasSlot(slotIdentifier)
Checks if grid contains specified slot identifier
|
|
setTemplate(aTemplate)
Traverses this grid and its children and insert the given
template in place
|
Class Detail
grid(rows, options)
Creates a template grid
- Parameters:
- {gridRow[]} rows
- template rows
- options Optional
- optional initialization
Field Detail
{integer}
colNumber
Number of columns
{Object}
filledSlots
Hash table like structure that stores nested Template objects.
- key = template position
- value = array of template objects
<static>
grid.fn
Extension point
{string[]}
minWidths
minimums columns widths
{string[]}
preferredWidths
preferred columns widths
{integer}
rowNumber
Number of rows
{gridRow[]}
rows
Template rows
{string[]}
widths
columns widths
Method Detail
getDefaultSlot()
Gets the "@" slot OR topmost left slot
{boolean}
hasSlot(slotIdentifier)
Checks if grid contains specified slot identifier
- Parameters:
- {string} slotIdentifier
- slot identifier
- Returns:
- {boolean} true if rows[i].rowText contains slotIdentifier, else if not
{boolean}
setTemplate(aTemplate)
Traverses this grid and its children and insert the given
template in place
- Parameters:
- {template} aTemplate
- given template
- Returns:
- {boolean} true if inserted, false if not