Module: nmodule/webEditors/rc/wb/table/tree/TreeNodeRow


new (require("nmodule/webEditors/rc/wb/table/tree/TreeNodeRow"))(node)

API Status: Development

Row backed by a TreeNode. The value and icon of the TreeNode will be used
as the subject and icon of the row itself.

This type of row will be used in a TreeTableModel. This allows the use of
regular Column types in the model (using the actual value of the node as
the row's subject) while still being able to use the expand/collapse
functionality of a tree (by accessing #getTreeNode()).

Extends:
Parameters:
Name Type Description
node module:nmodule/webEditors/rc/wb/tree/TreeNode
Since:
  • Niagara 4.6
See:

Methods


data(key [, value])

Allow arbitrary metadata to be set temporarily on the row or retrieved.

Parameters:
Name Type Argument Description
key String
value * <optional>
Inherited From:
Returns:

undefined if used as a setter; data value if used as a
getter

Type
*

deleteData(key)

Delete the metadata value with the given key name.

Parameters:
Name Type Description
key String
Inherited From:

getDataKeys()

Return an array of key names for the metadata values set on the row
via the data() method.

Inherited From:
Returns:
Type
Array.<String>

getIcon()

Overrides:
Returns:

the icon of the backing TreeNode

Type
Array.<String>

getSubject()

Get the value represented by this row.

Inherited From:
Returns:
Type
*

getTreeNode()

Returns:

the node backing
this row

Type
module:nmodule/webEditors/rc/wb/tree/TreeNode