当rowdetails展开时突出显示行

有没有什么办法让rowextails在ngx-datatable中展开时突出显示行?当rowdetails展开时突出显示行

我们可以得到高亮显示的行。但能不能被点击的行

回答:

findParentNode(parentName, childObj) { 

let tempNodeObj = childObj.parentNode;

while(tempNodeObj.tagName != parentName) {

tempNodeObj = tempNodeObj.parentNode;

}

return tempNodeObj;

}

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

这将有助于找到你的数据表行元素

this.render.addClass(findParentNode,"row-expanded"); 

以上是 当rowdetails展开时突出显示行 的全部内容, 来源链接: utcz.com/qa/263879.html

回到顶部