01-08-2017 3:45 PM - edited 01-21-2024 10:05 PM
Hello Experts,
I am using sap.tnt.SideNavigation and I am trying to set my own icons to each of the items.
The icons are not displayed.
While searching for information on this problem, I saw that there was an open bug for this which was resolved on version 1.36.11.
I use version 1.40.11
Any ideas?
Regards.
An update...
I was able finally to display my custom icons.
The thing is: The icons are displaying in the upper level NavigationListItem but not in the internal ones.
I will keep investigating.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So...
After doing some more reading I realized that using "raw" .png images is not possible here.
I converted the .png images to .svc &-> font. I tried to load the image and I get a rectangle.
Now I am trying to see whether I can use color icons (defined with multiple paths).
Any thoughts will be appreciated.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viplove,
Thanks for your suggestion. Unfortunately, it did not solve the problem.
I also tried: "img>nav_desktop_logoff" & "img>/nav_desktop_logoff" without success.
I know the image reference is correct becuase I am using it with menu button:
new sap.m.MenuButton({height:"50px", tooltip:"{i18n>nav.Desktop}", icon:"{img>/nav_desktop}"});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viplove,
Thank you for your feedback.
My code (snippet) is:
...
oSideNavigation.getFixedItem().addItem(new sap.tnt.NavigationListItem({ tooltip: "{i18n>nav.Desktop.LogOff}", icon: "{img>/nav_desktop_logoff}", select: function(){ oController.doDesktopLogOff(); } }));
...
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Effi
I am also using navigationList Item with custom icons in one of the project and its working correctly for me . Please check your code might be you have missed something
thanks
Viplove
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.