KingTable
KingTable copied to clipboard
How to highlight the select row
Hi Can you please give an example to highlight/toggle the row style on click event
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'); }