NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on August 12, 2025, 03:42:54 PM
-
Hi All,
Struggling to figure out this ICON stuff, especially Icons in CSS.
NT 14.21 C11
I have added the fontAwesome.css to my app.
I have a Menu item: HOME to which I added the Icon: 'fas fa-heart' . Great! I get a black heart on my HOME button. But, I want a RED heart icon. I tried various permutations to get a RED heart but no luck.
e.g 'fas fa-heart' & 'style="color:red;"' No luck.
There has to be a trick to this with some specific NT language.
Anyone can help?
Thanks,
Ron
-
I see the method:
NetWebServerWorkerBase.CreateIcon Procedure(<String pIcon>, <String pIconGroup>, <String pClass>, Long pType=-1)
class1 cstring(255)
spacer cstring(255)
code
class1 = self.CreateIconName(pIcon,pIconGroup,pClass,pType)
if not omitted(pIconGroup) and pIconGroup <> ''
spacer = '<span class="ui-' & clip(pIconGroup) & '-icon-space"></span>'
end
return '<span class="' & class1 & '"></span>' & spacer
MakeIcon method - takes several parameters. Trying to figure out how to get the right information in to the method to make my fontAwesome icon RED.
Ron
-
SOLVED!
For Icon education look at NetTalk Webinar from Today - August 14, 2025.
\Ron