Jsgrid: row style on mouse over

Created on 7 Oct 2015  路  5Comments  路  Source: tabalinas/jsgrid

Hi, i want to add class to row when mouse enters that row (onmouseenter), and remove that class when mouse leaves (onmouseleave).
Is it possible? Do you have any function to control row style?
any help would be appreciated.

question

All 5 comments

To be able to highlight row on hover provide an option selecting=true. To change the class attached to the hovered row specify the option selectedRowClass: 'my-grid-row-selected-class-name'.

Thanks for your answer, i solved my problem sing a trick, i wanted just a column to hide the current element and show another, i did this by adding element in data provider (i use json as data) and hide the current element when row is selected. Anyway i appreciate your attention, thank you.

You are welcome!

any demo link for the same

any demo link for the same
Hopefully this helps :)
I changed the class that was pointing to the class selected row on the jsgrid.min.js file.
Instead of ".jsgrid-selected-row" I did changed to ".jsgrid-selected-row1"

on my stylesheet

.jsgrid-selected-row1 > .jsgrid-cell {
    border-color: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

samuelrobertson picture samuelrobertson  路  3Comments

danielson317 picture danielson317  路  3Comments

flyinmryan picture flyinmryan  路  3Comments

Julian-B90 picture Julian-B90  路  4Comments

bradybray picture bradybray  路  3Comments