0

Is there any way to get it highlight the row when rowdetails is expanded in ngx-datatable ?

we can get highlight expanded row. but can't able to the clicked row

Subash
  • 232
  • 1
  • 3
  • 12

1 Answers1

0
findParentNode(parentName, childObj) {
let tempNodeObj = childObj.parentNode;
while(tempNodeObj.tagName != parentName) {
  tempNodeObj = tempNodeObj.parentNode;
}
return tempNodeObj;
}

this.findParentNode('DATATABLE-BODY-ROW',$event.target);

this will help to find you the data table row element

this.render.addClass(findParentNode,"row-expanded");
Subash
  • 232
  • 1
  • 3
  • 12