NG2: Using font awesome icon in Data Grid Header

Forum to discuss the new web client version of Servoy.

NG2: Using font awesome icon in Data Grid Header

Postby huber » Wed Jan 31, 2024 1:02 pm

In a Data Grid Column we are using in the property headerStyleClass for example the font awesome icon far fa-eye-slash, which is displayed fine in NG1, but does not display in N2.

Is there anything additionally needed in NG2 to use font awesome?

Servoy Developer Version: 2023.12.1.3923

Regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm

Re: NG2: Using font awesome icon in Data Grid Header

Postby mboegem » Fri Feb 02, 2024 3:59 pm

Apart from the position, this works for me by just use 'far fa-eye-slash' in the header style class.
Something seems wrong, but can't tell based on the information you provided
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: NG2: Using font awesome icon in Data Grid Header

Postby huber » Fri Feb 02, 2024 5:46 pm

Hi Marc

They work perfectly fine in NG1, but not in NG2. The font awesome icon works in a row, but not in the header. Below the data grid and the properties set. The properties belong to the left most column (with checkboxes)

Regards,
You do not have the required permissions to view the files attached to this post.
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm

Re: NG2: Using font awesome icon in Data Grid Header

Postby mboegem » Sat Feb 03, 2024 3:14 pm

Hi Robert,

looks exactly the same as what I tested (which worked), the column is most likely a bit to narrow anyway.
Besides that, you really need to look in the browser's inspector in order to find out what is blocking the icon from showing.
Maybe some 'old' NG CSS that prevents it from showing correctly.
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: NG2: Using font awesome icon in Data Grid Header

Postby huber » Tue Feb 06, 2024 10:26 am

Hi Marc

Thanks for the comparing with your property settings, removing the font-family property in the following selector solved the problem, i. e. the font-family "blocked" the displaying of the font awesome icon.

Code: Select all
.ag-table.ag-theme-bootstrap .ag-header-cell {
   border-right: none;
   color: #555;
   font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", "Segoe UI", sans-serif;
   padding-left: 0px;
}


Regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 23 guests

cron