Use display for Simple Property Selection
Thedisplay property specifies which property of a linked entity to show in the cell. For scalar navigation properties (n-to-1 relationships), set it to a property name:
title property of the linked hazard entity instead of the default object representation.
Use display with a JavaScript Function
For custom HTML rendering, setdisplay to a JavaScript arrow function string. The function has access to a context object:
> (folded scalar) indicator for multi-line function strings. The JavaScript is evaluated in the browser for each cell.
Context Object Reference
Thecontext object provides access to the current cell’s data:
| Property | Description |
|---|---|
context.value | The current cell value (the bound property or entity object) |
context.item | The entity object for the current row |
context.item.id | The work item ID |
context.item.projectId | The project ID of the work item |
context.item.entityType | The entity type metadata |
context.item.entityType.custom.iconPath | Path to the entity type icon |
context.polarionModel.polarionBaseUrl | Base URL of the Polarion instance |
Use render for Additional Control
Therender property works like display for JavaScript functions, but is used when display is already set for property selection. It can also reference a predefined renderer name:
Customize Picker Display
Thelist.display property customizes how items appear in dropdown pickers (not in the cell itself):
Use
display for selecting a property or rendering the cell content. Use render when display is already used for property selection and you need custom HTML. Use list.display to customize how items appear in picker dropdown lists.Complete Example
Verify
After saving the sheet configuration, reload the powersheet document. You should now see cells rendering custom HTML content — linked text, icons, or formatted values — according to the JavaScript functions you defined.See also
Sources
Sources
KB ArticlesSource Code
prod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/common/types/api/document.tsprod-powersheet-src/com.nextedy.powersheet/src/META-INF/hivemodule.xmlweb.xmlprod-powersheet-src/com.nextedy.powersheet/src/com/nextedy/powersheet/enumProvider/SheetConfigEnumProvider.javaprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/common/types/domain/document.ts