Skip to main content
Solved

Display Icons in Treeview


Christian Schmidtchen
Rookie
Forum|alt.badge.img

Hallo everyone,

we have a tree-view in Universal GUI (2023.2.10) that contains a Icon column. The Icon cames out of a domain with a set of elements that represanted some kind of anser types.

We also define the image-column in the SoftwareFactory:

 

But in the GUI we dont see any icon. But I think there is a little space that represanted the space for an icon.

 

When we change the screentype to a grid, the icon will shown as expected.

 

Do we miss something or do we somthing wrong? Or do icons not (yet) work in the tree view under UniversalGUI?

 

Thanks an kind regards

Christian

Best answer by Christian Schmidtchen

Hi Mark,

thanks for your replay. Today wie updated our developmet-system to the lates version of Universal GUI (2023.2.12).

At first it made our problem worse. The icons on the second level of our main menu had disappeared.

I then looked at the HTML code and noticed that the attributes "width" and "height" were no longer present in the container above the icon. We only use SVG icons, which also have no size attributes.

Without these attributes the icons will not be displayed. Understandable.

As a solution for us, I have now specified default values for the size in the custom.css of the Universal GUI for svg tags. Now all icons are displayed correctly. In the menu, in the tree view and even on the tabs.

svg {
    width: 24px;
    height: 24px; 
}

Thank you.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

5 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Christian,

This should work properly. Can you retry using the latest available Universal GUI to see if that resolves it?

It may also be due to the control of the domain of column "Antwortart_Typ”. can you verify you are using one of the following controls?: 

IMAGE_LINK / IMAGE_BLOB / IMAGE_UPLOAD / IMAGE_COMBO / SIGNATURE

 


Christian Schmidtchen
Rookie
Forum|alt.badge.img

Hi Mark,

thanks for your replay. Today wie updated our developmet-system to the lates version of Universal GUI (2023.2.12).

At first it made our problem worse. The icons on the second level of our main menu had disappeared.

I then looked at the HTML code and noticed that the attributes "width" and "height" were no longer present in the container above the icon. We only use SVG icons, which also have no size attributes.

Without these attributes the icons will not be displayed. Understandable.

As a solution for us, I have now specified default values for the size in the custom.css of the Universal GUI for svg tags. Now all icons are displayed correctly. In the menu, in the tree view and even on the tabs.

svg {
    width: 24px;
    height: 24px; 
}

Thank you.


Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Christian,

Great this solution works for you, but it is still strange that the icons do work in the Grid, but not in the Tree. That looks to me as inconsistent behavior which is undesired. Could you create a ticket for this in TCP for our Universal team to look into?


Christian Schmidtchen
Rookie
Forum|alt.badge.img

Hi Mark,

thanks for your help.
The ticket is created (7668S)


Tim de Lang
Moderator
Forum|alt.badge.img+4
  • Moderator
  • 90 replies
  • October 5, 2023

Hi all,

This has been solved in version 2023.3.10.2, which has just been released.

Kind regards,

Tim de Lang


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings