imballinst / react-bs-datatable

Bootstrap datatable without jQuery. Features include: filter, sort, pagination, checkbox, and control customization.
https://imballinst.github.io/react-bs-datatable
MIT License
59 stars 20 forks source link

How to add onClick event to a row? #51

Closed henok-tesfaye closed 4 years ago

henok-tesfaye commented 4 years ago

I want to add a click event to a row of one column?

imballinst commented 4 years ago

hey, sorry for the long reply. Let me know if this is enough: https://codesandbox.io/s/205-row-onclick-event-ev9oy

If yes, I'll merge #53 after few some commits (regarding docs, etc.)

henok-tesfaye commented 4 years ago

Yes @Imballinst , Issue fixed! Thanks,

imballinst commented 4 years ago

@henok-tesfaye this should be live in react-bs-datatable@2.0.5 (updated the last sandbox, too). Let me know if something doesn't work!

henok-tesfaye commented 4 years ago

Thanks you @Imballinst. How long will it take to be released? Sure I'll let you know.

imballinst commented 4 years ago

@henok-tesfaye it should be live already: https://www.npmjs.com/package/react-bs-datatable

npm install react-bs-datatable@latest

# or
yarn add react-bs-datatable@latest
henok-tesfaye commented 4 years ago

Awesome, thanks @Imballinst !