enhancement
There should be a ResourceProvider that calculates the label and the tooltip using a TL script expression.
Furthermore, it should be possible to specify a (static) image and a (static) CSS class.
Usage
This can be configured in the LabelProviderService; as an example, the `id ` attribute is used as the label and tooltip for objects of type `Families:Family`:
<provider kind="MODEL" type="Families:Family"> <label-by-expression label="self -> $self.get(`Families:Family#id`)" tooltip="self -> $self.get(`Families:Family#id`)" image="theme:MODEL_FAMILIES_FAMILY_IMAGE" css-class="family" /> </PROVIDER>
See tl:com.top_logic.model.search.providers.LabelByExpression
Test
No test.