Module: nmodule/webEditors/rc/wb/table/model/Row


new (require("nmodule/webEditors/rc/wb/table/model/Row"))(subject [, icon])

API Status: Development

Row for use in a TableModel.

Parameters:
Name Type Argument Description
subject *

the value represented by this row

icon * <optional>
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>
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

getDataKeys()

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

Returns:
Type
Array.<String>

getIcon()

Get this row's icon.

Returns:

the icon, or null if none given

Type
*

getSubject()

Get the value represented by this row.

Returns:
Type
*