HierarchyRowMeta

HierarchyRowMeta

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 <tr> element

flatName String <optional>

default string name ('|'-delimited) for hierarchy

name String

a trimmed version of flatName containing label for this item without parent suffices

nameCell HTMLTableCellElement

reference to the <td> element that contains the rowheader hierarchical label/name

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 0

hidden Boolean

flag set to hidden rows (meaning their parent is in collapsed state)

collapsed Boolean

flag only set to rows which have children (hasChildren=true)

matches Boolean <optional>
false

flag set to those rows which match search.query

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 <tr> element

flatName String <optional>

default string name ('|'-delimited) for hierarchy

name String

a trimmed version of flatName containing label for this item without parent suffices

nameCell HTMLTableCellElement

reference to the <td> element that contains the rowheader hierarchical label/name

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 0

hidden Boolean

flag set to hidden rows (meaning their parent is in collapsed state)

collapsed Boolean

flag only set to rows which have children (hasChildren=true)

matches Boolean <optional>
false

flag set to those rows which match search.query

hasChildren Boolean <optional>

flag set to rows which contain children

children Array

child rows if `hasChildren == true

Extends

  • AggregatedTableRowMeta

Methods

(static) setCollapsed()

Source:
Fires:

(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