react-tabulator
react-tabulator copied to clipboard
Is it possible to add rowClick just with hooks?
Is it possible to add rowClick just with hooks
const rowClic = (ev, row) => {
console.log(row, ev);
};
<ReactTabulator
ref={(ref) => setReft(ref)}
data={data}
columns={columns}
layout={"fitColumns"}
options={options}
rowClick={(e,row) => rowClic(e, row)}
/>
Demo: Codesandbox
not sure why you meant but the rowClick prop is deprecated now, please use the new "events" prop and put rowClick in there.