Enhancement
There should be a ResourceProvider that calculates the label and the tooltip via a TL-Script expression.
Furthermore, a (static) image and a (static) CSS class should be specified.
Application
In the LabelProviderService this can be configured, as an example the id attribute is used as 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_FAMILIY_IMAGE" css-class="family" /> </provider>
See tl:com.top_logic.model.search.providers.LabelByExpression
Test
No test.