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!

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!