AllenFang / AllenFang/react-bootstrap-table

Enabling and disabling of the sorting functionality via remote doesn't work in our case

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

描述

Hey there,

we are trying to disable the initial sorting when a new rendering is triggered. We are using the remote functionality and want to switch the remoteObj.sort value depending on a field in the state. Wether the value of remoteObj.sort is true or false the sorting won't work and is continuously disabled.

remote(remoteObj) {
remoteObj.pagination = false; -> work's just fine
remoteObj.filter = true; -> work's just fine
//remoteObj.sort = true; -> sorting is disabled
//remoteObj.sort = false; -> sorting is disabled
remoteObj.sort = this.state.noSorting; -> sorting is disabled
return remoteObj;
}

Best regards.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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