AllenFang / AllenFang/react-bootstrap-table

How can I clear the selected rows

オープン
#1,983 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.2k
フォーク
761
PR マージ指標
30日以内にマージされた PR はありません

説明

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`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。