Caplin Trader 4.7.1

Interface: module:caplin/grid/expandable/ContainerChildRowConfig

module:caplin/grid/expandable/ContainerChildRowConfig

ContainerChildRowConfig This interface allows the configuration of child row containers for expandable grids.

Methods

getChildContainerName(subject, parentFieldValueMap) → {String}

Provides the expandable grid with the child container subject for a specified parent row subject.
Parameters:
Name Type Description
subject String of the parent row.
parentFieldValueMap object the field values for the child container's parent row.
Returns:
the child container subject to request.
Type
String

getChildRowFieldMappings(subject, parentFieldValueMap) → {Object}

Provides the expandable grid with a set of field mappings for child rows. This is useful in two cases:
  • When you require a given field to be displayed in one column for parent rows, and another column for child rows.
  • When you require a given column to display one field for parent rows, and another field for child rows.
Parameters:
Name Type Description
subject String of the parent row.
parentFieldValueMap object the field values for the child container's parent row.
Returns:
a map of child field names to the field names that they should be mapped to.
Type
Object