How to call one more fucntion in rowinfo react table?

246 Views Asked by At

I want to call one more function like editUserDetail in table row onclick.pls suggest any solution.

   ``` <Table columns={columns} data = {userData} rowInfo={this.deleteUserDetail} styles={controlPanelTableStyle}/>```
1

There are 1 best solutions below

0
On

You can call one function onClick and then call multiple functions inside that function.

<Table columns={columns} data = {userData} 
         rowInfo={this.deleteUserDetail} 
         styles={controlPanelTableStyle}
onClick={()=>{
 firstFunction();
secondFunction();
}}/>