Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to highlight the select row #19

Open
rb200505 opened this issue May 3, 2018 · 1 comment
Open

How to highlight the select row #19

rb200505 opened this issue May 3, 2018 · 1 comment

Comments

@rb200505
Copy link

rb200505 commented May 3, 2018

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

@DOOMitru
Copy link

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'); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants