addStyleClass has no effect on comboBox component

Forum to discuss the new web client version of Servoy.

addStyleClass has no effect on comboBox component

Postby aijazalee889 » Wed Aug 30, 2023 8:17 am

Hi, All

I want to add 'background-color' in my comboBox component, I used addStyleClass but it has no effect on comboBox. How do I set background-color of comboBox dynamically if anyone has any idea, please share.

Thanks
Aijaz Ali
aijazalee889
 
Posts: 9
Joined: Wed Oct 05, 2022 1:20 pm

Re: addStyleClass has no effect on comboBox component

Postby mboegem » Wed Aug 30, 2023 12:23 pm

Hi,

css like this should do the job:
Code: Select all
.bts-combobox.my-custom-styleclass .ui-select-match {
   background-color: red;
}


where 'my-custom-styleclass' is the styleclass you are trying to add.

Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

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


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 2 guests