NG2: svy-lookup toolbar filter problem FontAwesome?

Forum to discuss the new web client version of Servoy.

NG2: svy-lookup toolbar filter problem FontAwesome?

Postby briese-it » Thu May 30, 2024 4:48 pm

Iam trying to use the toolbar filter from svy_lookup.
Check fields etc are running fine but scopes.svyToolbarFilter.FILTER_TYPES.SELECT with a valuelist is not displayed correctly.

I can still select the values and they are filtered after closing the filter popup, but I cannot see the selection in the table of the filter popup.

svy_loopup.png


To me it looks like a problem with css and I found the following entry in the svy-lookup.css:

.svy-lookup .ag-table .svy-lookup-icon-selection > div,
.svy-lookup td.svy-lookup-icon-selection > div {
font-family: 'Font Awesome\ 5 Free';
text-align: center;
font-weight: 400;
}

We are using FontAwesome Pro 5, but the default Servoy FontAwesome Free is still in our solution. Maybe that's the reason?
Servoy Developer is Version: 2024.3.2.3945

We have NG1 running on Servoy Developer Version: 2021.3.0.3642 with the same FontAwesome and toolbar filter without any problems.
You do not have the required permissions to view the files attached to this post.
Michael Harms
Head of Software Development
Briese Schiffahrts GmbH & Co.KG, Germany

- Servoy 2024.6.1.3983
- Servoy 2021.3.0.3642
- Servoy 2020.3.3.3565_LTS
Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 181
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: NG2: svy-lookup toolbar filter problem FontAwesome?

Postby paronne » Fri May 31, 2024 8:29 am

Hi,

If you use Font Awesome PRO you can add this to your solution's CSS, will then use the FA PRO font instead of the Free version

Code: Select all
.svy-lookup .ag-table .table-cell-icon,
.svy-lookup td.table-cell-icon > div {
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
}


Regards,
Paolo
paronne
 
Posts: 217
Joined: Fri Nov 02, 2012 3:21 pm

Re: NG2: svy-lookup toolbar filter problem FontAwesome?

Postby briese-it » Fri May 31, 2024 8:44 am

Hey Paola,
thanks. Sometimes it can be so easy :-).
I just have to make a note of it, as it will probably be overwritten again with the next update of the svy-lookup module.
Of course it would be good if Servoy would use both existing fontawesome packages.
Michael Harms
Head of Software Development
Briese Schiffahrts GmbH & Co.KG, Germany

- Servoy 2024.6.1.3983
- Servoy 2021.3.0.3642
- Servoy 2020.3.3.3565_LTS
Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 181
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: NG2: svy-lookup toolbar filter problem FontAwesome?

Postby paronne » Fri May 31, 2024 9:04 am

Hi Michael,

if you write that piece of CSS into your own solution's css you won't need to modify the svy-lookup.css file itself.
paronne
 
Posts: 217
Joined: Fri Nov 02, 2012 3:21 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest