Skip to content

TableHeaderLayout ​

The component TableHeaderLayout is a table header that is built based on an object renderer configuration. Each column can be sortable, this can be configured either in the SearchSetActor, or in the sortFieldOptions.

Properties ​

  • HTMLElement

  • Element tag: cm4ap-table-header-layout

Parameter ​

Parameters In the Layout ​

NameTypeDescription
relationActorRelationActorContains the relation's attributes.
listActorListActorThe actor is used for the visibility of the component and for the item marking.
rendererNamestring
fallback:
  • If SearchSetActor is defined, depending on content searchResultGridRenderer or subpanelGridRenderer
  • If RelationActor is defined 'subpanel/' + relationName
  • default
Name of the renderer that is loaded to display the table header.
correspondingListstringThe list component id defined in the layout configuration. The list component is used to check the width of the header component.
moduleNamestring
fallback:
  • If Actor RelationActor is defined, the attributes targetModule or moduleName from the actor
  • If Actor SearchActor is defined, the attributes targetModule or module from the actor
  • module of context
The module for which renderer configuration is loaded
searchSetActorSearchSetActorThe actor is needed to get the sorting fields and renderer name.
searchActorSearchActorThe actor is needed to get the current search sort and the module name.
selectionActorSelectionActorThe actor is needed to mark the items and to be able to react to the item marking.
sortFieldOptionsarray of (string or FieldOptions)The field names or information of sortable fields
hideCheckbox
default: false
booleanDefines whether the marking CheckBox should be hidden.
preserveCheckboxSpaceboolean
default: true
Defines whether the space from the marking CheckBox should be kept after hiding.

Field Options ​

NameTypeDescription
field (required)stringField name
label (required)stringtext or label key
translate (optional)booleanDefines whether the text should be translated
Request missing documentation