How to call one more fucntion in rowinfo react table?

227 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 answers

0
Manoj 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();
}}/>