AllenFang / AllenFang/react-bootstrap-table

Dynamic TableHeaderColumns with search and exportToCSV props doesn't work in BootstrapTable

未關閉
#2,142 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
2.2k
分支
761
PR 合併指標
30 天內沒有已合併 PR

描述

I am creating a table like this. I am using react-bootstrap-table version 4.3.1
![image](https://user-images.githubusercontent.com/77404909/197405785-18deb5e2-72ba-41c2-8792-5af43c940ed3.png)
The students data look like this
[ { id: 1, firstName: abc, lastName: xyz, listAtten:[ { date: 9-10, status: A}, { date: 16-10, status : P } }, { id: 2, firstName: cde, lastName: ijk, listAtten:[ { date: 9-10, status: P}, { date: 16-10, status : A } }, {...} , {...} ]. The Attendance header column will group all the student's attendance date.
This code is oke and work as I expected. **Note that my students[0] is set to { id:0 } by default before I call API to set it to another value**
![image](https://user-images.githubusercontent.com/77404909/197407070-5f460804-d8c5-42a3-a73b-8eb23cc95ecf.png)

![image](https://user-images.githubusercontent.com/77404909/197407017-924c6eb4-3284-4131-b6ef-6e7bc2c80214.png)

![image](https://user-images.githubusercontent.com/77404909/197406470-e8bc6733-c797-4c9e-8f42-928c4c66721b.png)
but when I add the search props or exportToCSV props its throw error
![image](https://user-images.githubusercontent.com/77404909/197406640-42c54030-a2f3-4e2d-9841-e4746d7229da.png)
![image](https://user-images.githubusercontent.com/77404909/197406657-93095433-124f-4772-a8e9-5f4c5ebbb885.png)
Please help me with this issue, I cant use react-boostrap-table2 because it's doesn't support header column grouping

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。