Author Topic: context menu get row with 5.x  (Read 1713 times)

gilem

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 2
    • View Profile
context menu get row with 5.x
« on: August 30, 2018, 01:21:26 am »
we were previously using 2.x, and with 5.x jQuery.contextMenu is no longer working.
The menu pops up, we are unable to determine what the row# is.
We used to use this.attr('pq-row-indx') within the contextMenu callback, but it is not obvious to me how to get the row with v5.
Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: context menu get row with 5.x
« Reply #1 on: August 30, 2018, 07:39:24 am »
in v5x, id of the rows is like pq-body-row-u5-2-left whereby id.split("-")[4] provides the rowIndx.