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
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
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");