Mouse pointer on single column

Mouse pointer on single column

PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1
edited August 2020 in Free community support

Hi, is there any way where we could get hand cursor pointer hover on all rows in single column in datatables? I need this feature since i'm triggering a function on that particular column. Help would be appreciated. Thanks.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

  • PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1

    @colin, I need hover on a single column of each row instead of all rows.

  • kthorngrenkthorngren Posts: 21,172Questions: 26Answers: 4,923

    From that example make your selector more specific with a class assigned to the td, like this:

    myTableID tbody tr td.my-pointer {
      cursor: pointer;
    }
    

    You can use columns.className to add the class if you wish.

    Kevin

This discussion has been closed.