How to expand row from datatable programmatically

后端 未结 5 676
被撕碎了的回忆
被撕碎了的回忆 2021-01-13 10:41

I want to expand row directly from an typescript method, i\'ve try with @viewchild but it doesn\'t work :

HTML:



        
5条回答
  •  逝去的感伤
    2021-01-13 11:35

    Try this:

    addComment(): void {
        console.log(this.datatable);
        this.datatable.toggleRow(this.datatable.selection);
    }
    

提交回复
热议问题