You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.
It's quite common IMO to have selection or edit/delete controls as first column in a table. While there's a great way to customize columns in "additional" rows using Tr->Td..., I haven't found a way to insert controls into columns that would trigger React events.
The text was updated successfully, but these errors were encountered:
vardata=[{a: 1,b: 2},{a: 3,b: 4}];React.renderComponent(<Table>{data.map(function(row){return(<Tr><Tdcolumn="a">{row.a}</Td><Tdcolumn="b">{row.b}</Td><Tdcolumn="delete"><aonClick={function(ev){alert('do some XHR or something here');}}>Delete</a></Td></Tr>)})}</Table>,document.getElementById('my-table'));
should work. Remember that this is all still React, and anything you can do with React you can do with Reactable
Feel free to reopen the issue if you run into any other problems 😄
It's quite common IMO to have selection or edit/delete controls as first column in a table. While there's a great way to customize columns in "additional" rows using Tr->Td..., I haven't found a way to insert controls into columns that would trigger React events.
The text was updated successfully, but these errors were encountered: