AllenFang / AllenFang/react-bootstrap-table

How can I clear the selected rows

Aberta
#1,983 4 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
2.2k
Forks
761
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

package.json
` "react-bootstrap-table": "^4.3.1",`

banco.js

```
import { BootstrapTable, TableHeaderColumn, } from 'react-bootstrap-table';

export default class Banco extends Component {
constructor() {
super();
this.state = {
listbanco: [],
banco: '',
bancoAlterar: '',
rowSelecionada: false,
}
}
render() {
const products = this.state.listbanco;
const selectRowProp = {
mode: 'radio',
bgColor: '#26a69965',
hideSelectColumn: true,
clickToSelect: true,

onSelect: (row, isSelect) => {
this.setState({ rowSelecionada: isSelect })
this.setState({ banco: row })
var bancoAlterar = JSON.parse(JSON.stringify(row));
this.setState({
bancoAlterar:bancoAlterar
})
}
};
```
```
return (



ID
Nome:
Conta:
Codigo:
Agencia:
DV:
Ativo:


```
When the user clicks the line, it is selected with a green color, and when it is clicked again, the line gets clean, but I wanted to uncheck this line automatically.

How can I do this ?

I tried using the:
`this.refs.table.reset();`

but displays the error in the console:
`TypeError: Cannot read property 'reset' of undefined`

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.