AllenFang / AllenFang/react-bootstrap-table
Enabling and disabling of the sorting functionality via remote doesn't work in our case
- Linguagem predominante
- JavaScript
- Estrelas
- 2.2k
- Forks
- 761
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.