Skip to main content
Recently we noticed that tree labels are always shown in blue. To us this seems to mean like the labels are mandatory, even if in the subject the field is not set to mandatory.

The situation where we noticed this, is a tree where all nodes have an icon, but not all nodes have a label, in this situation the empty labels are shown as blue squares which just doesn't feel right.
Hi Pim,



Do you see the blue square for every node or just the active node?
Only the active one. Are you trying to tell me "That's just how a selected field looks" ?
The tree tries to inform the user of the selected items and active item. Normally, this is done using a background colour and a dotted border on the title.



When there is no title, this is indeed the fallback scenario.



You could create an expression field to display the title in the tree as following:



code:
isnull(t1.subject, '-')




This way, the subject would still be optional but the tree would show the dash instead of a weird blue cube.
In my situation I feel that a dash just won't do, so instead I have tried a couple of options: null, '', ' ', char(0), char(0x200b).. But it turns out that a space actually gives me the smallest possible visible blue box, which to me has to do for now. Although I think it would be great if a label with value null would be hidden completely.

To solve the 'selected node' issue, maybe the whole node (with or without label) can get the dotted border instead of just the label
Hi Pim,



The tree is not quite prepared to only show icons and not text. What you see selected is likely the padding on the left and right side of the text, so there is no way to prevent this by shortening the title.



Feel free to create a topic in the Ideas section for support of a tree that is focused on showing icons only.

Reply