Author Topic: Changing background of selected row & mouse hover color  (Read 2083 times)

kiwon34

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 52
    • View Profile
Changing background of selected row & mouse hover color
« on: August 14, 2018, 12:32:35 pm »
Hi,

  I'm using paramquery pro version 5.1
1. I want to change the selected row's background color, and when selecting another row, previous row's color should return to default, and only selected row's color should be changed.
Any simple way to do this?

2. Another question is, when mouse hover a specific row, I want to change that row's background color.

http://jsfiddle.net/z9afL0hk/1/ -> This is an example I used.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Changing background of selected row & mouse hover color
« Reply #1 on: August 14, 2018, 10:19:41 pm »
1. you mean you want to be able to select only one row at a time.

use selectionMode.mode = 'single'

2. use hoverMode: 'row'

http://jsfiddle.net/z9afL0hk/5/