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

Data is not coming when try to extend the table #24

Closed RanjithaRaja closed 5 years ago

RanjithaRaja commented 5 years ago

Basic Datatable is working perfectly, but when try to extend the table data is not coming to the table body and pagination is also not working.

imballinst commented 5 years ago

Sorry! Apparently I messed up the README and missed a little bit information on it.

I've updated the README: https://github.com/Imballinst/react-bs-datatable/commit/b93b89b0d4f4f67782710366dc9191e8e80962c0?short_path=04c6e90#diff-04c6e90faac2675aa89e2176d2eec7d8. The misinformation lies here:

image

I didn't get onFilter from the props and pass it to the 3rd option of filterData. So, that's why. If you're having trouble with extending, I've prepared a working CodeSandbox demo: https://codesandbox.io/s/n59wzmw0zm

Please let me know if this fixes your issue @RanjithaRaja

RanjithaRaja commented 5 years ago

@Imballinst Thank you so much...It's working perfectly

imballinst commented 5 years ago

No worries, I'm glad to help! :smile: