List Manager Forum

Row ID as CSS Class

User Joomill 2018-01-17 15:22:02

at first: Thanks for this component!

I would like to add the row ID to the tablerow CSS.

I found: trdato=LMJQ('',{'class':'lm_trwhite'}); in the .js file.

Can you tell me how to add the row ID ?

Moonsoft support 2018-01-18 09:25:14

Hi,
do you mean the internal unique rowId (different for each one?). At that point of the code you have it at

elem.idrecord, so something like

{'class':'lm_trwhite idrow'+elem.idrecord}


will create
class="lm_trwhite idrow1"

class="lm_trwhite idrow3"

...

unique classes for each row, not sure if this is what you need to achieve.


Thanks,regards

User Joomill 2018-01-19 08:30:50

Thanks!

...
List Manager

Build different lists for your site

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!