KingTable icon indicating copy to clipboard operation
KingTable copied to clipboard

How to highlight the select row

Open rb200505 opened this issue 7 years ago • 1 comments

Hi Can you please give an example to highlight/toggle the row style on click event

rb200505 avatar May 03 '18 22:05 rb200505

Assuming you have a css class called 'redbg' you can add the following handler to the constructor options when creating the table:

onItemClick: function(item, e){ e.target.parentElement.classList.toggle('redbg'); }

DOOMitru avatar Jun 14 '19 15:06 DOOMitru