Property Definition
| Property | Type | Default | Description |
|---|---|---|---|
columns.<key>.display | string | id | Specifies which property of a referenced entity to display. Accepts a property name (title, titleOrName, id) or a JavaScript arrow function string for custom rendering. |
Display Values
| Value | Description |
|---|---|
id | Shows the entity’s ID (default) |
title | Shows the entity’s title property |
titleOrName | Shows the title if available, otherwise falls back to the entity name |
| Custom property | Any valid property name from the referenced entity type |
| JS function string | Arrow function returning custom HTML (see below) |
Display Resolution Flow
Simple Property Display
Show thetitle property of a referenced Hazard entity:
titleOrName property with fallback:
JavaScript Function Display
Use a JavaScript arrow function string to return custom HTML. The function has access to acontext object.
Context Object
| Variable | Description |
|---|---|
context.value | The current cell value (the referenced entity or property value) |
context.item | The current row item with properties like projectId, id |
context.polarionModel.polarionBaseUrl | Base URL of the Polarion server |
Example: Icon with Link
Display vs Render
Bothdisplay and render can accept JavaScript function strings, but they serve different purposes:
| Property | Primary Use | When to Use |
|---|---|---|
display | Property name selection for navigation columns | Use when you need to select which property of a referenced entity to show, or when using a simple JS function |
render | Custom HTML cell rendering | Use when display is already used for property selection and you need additional rendering control. Can also reference predefined renderer names. |
Complete YAML Example
Related Pages
- Render Property — custom HTML rendering as an alternative to
display - Column Properties — full column property reference
- Binding Syntax — column key patterns for navigation properties
- Multi-Item Columns — display for collections
Source references: Column Configuration Guide KB article, powersheet.yaml, whole_rtm.template.yaml
Sources
Sources
KB ArticlesSource Code
powersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/common/types/domain/document.tsprod-powersheet-src/com.nextedy.powersheet/src/com/nextedy/powersheet/PowersheetService.javaprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/constraints_composing.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yaml