react-tabulator icon indicating copy to clipboard operation
react-tabulator copied to clipboard

Is it possible to add rowClick just with hooks?

Open olscode opened this issue 4 years ago • 1 comments

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

olscode avatar Dec 30 '21 20:12 olscode

not sure why you meant but the rowClick prop is deprecated now, please use the new "events" prop and put rowClick in there.

ngduc avatar Jan 20 '22 07:01 ngduc