SearchPanes Background Colors in SelectList
SearchPanes Background Colors in SelectList
hkuesters
Posts: 9Questions: 4Answers: 0
Hi!
I want to use background-color inside of my searchpanes - similiar to the background-colors in the table itself. You can see my example here https://p626900.mittwaldserver.info/fortbildungen
I tried the following code, but i doesn't work - the CSS-class will not be added to the <tr>. Everything else works very fine. Where is my mistake?
columnDefs:[
{
searchPanes:{
options:[
{
label: 'Quick-Fit-Seminare',
value: function(data, index) {
return data.Kategorie.includes('Quick-Fit-Seminare,');
},
class: 'cat01',
},
{
label: 'Innere Medizin',
value: function(data, index) {
return data.Kategorie.includes('Innere Medizin,');
},
class: 'cat02',
},
...
Thanks for your help!
Hubert
Answers
The docs for SearchPanes Options show className, not class.
Hi tangerine!
Thank for your answer!
I modified my code. It's now:
...
But it still doesn't work.Any idea?
Thanks and bye
Hubert