NetTalk Central

Author Topic: Icons for Menu  (Read 1687 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
    • Email
Icons for Menu
« 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

rjolda

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
    • Email
Re: Icons for Menu
« Reply #1 on: August 13, 2025, 05:21:43 AM »
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

rjolda

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
    • Email
Re: Icons for Menu
« Reply #2 on: August 14, 2025, 09:28:49 AM »
SOLVED!
For Icon education look at NetTalk Webinar from Today - August 14, 2025. 
\Ron