new HierarchyRowMeta(row, flatNameopt, name, nameCell, block, parent, level, hidden, collapsed, matchesopt, hasChildrenopt, children)
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
row |
HTMLTableRowElement | reference to the |
||
flatName |
String |
<optional> |
default string name ('|'-delimited) for hierarchy |
|
name |
String | a trimmed version of |
||
nameCell |
HTMLTableCellElement | reference to the |
||
block |
String | id of the block the row belongs to |
||
parent |
String | internal Reportal id of parent row |
||
level |
Number |
0
|
level of hierarchy, increments form |
|
hidden |
Boolean | flag set to hidden rows (meaning their parent is in collapsed state) |
||
collapsed |
Boolean | flag only set to rows which have children ( |
||
matches |
Boolean |
<optional> |
false
|
flag set to those rows which match |
hasChildren |
Boolean |
<optional> |
flag set to rows which contain children |
|
children |
Array | child rows if `hasChildren == true |
This function builds a prototype for each row
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
row |
HTMLTableRowElement | reference to the |
||
flatName |
String |
<optional> |
default string name ('|'-delimited) for hierarchy |
|
name |
String | a trimmed version of |
||
nameCell |
HTMLTableCellElement | reference to the |
||
block |
String | id of the block the row belongs to |
||
parent |
String | internal Reportal id of parent row |
||
level |
Number |
0
|
level of hierarchy, increments form |
|
hidden |
Boolean | flag set to hidden rows (meaning their parent is in collapsed state) |
||
collapsed |
Boolean | flag only set to rows which have children ( |
||
matches |
Boolean |
<optional> |
false
|
flag set to those rows which match |
hasChildren |
Boolean |
<optional> |
flag set to rows which contain children |
|
children |
Array | child rows if `hasChildren == true |
Extends
- AggregatedTableRowMeta
Methods
(static) setCollapsed()
- Source:
Fires:
- HierarchyRowMeta#event:reportal-table-hierarchy-collapsed
- HierarchyRowMeta#event:reportal-table-hierarchy-uncollapsed
(static) toggleHiddenRows(meta)
- Source:
Function to hide or show child rows of a collapsed/expanded row
Parameters:
Name | Type | Description |
---|---|---|
meta |
Object | meta in the row |