AllenFang / AllenFang/react-bootstrap-table

tabindex and Keyboard handlers upon a Row

Đang mở
#1,220 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
help wanted in progress
Ngôn ngữ chính
JavaScript
Star
2.2k
Fork
761
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi, first, thanks for the feature-ful library!

I'm migrating to `react-bootstrap-table` from an older Backgrid solution and have come across an issue when replicating navigation from a row. In my old tables, you were able to highlight a row like so...
![2017-04-12 at 12 36 pm](https://cloud.githubusercontent.com/assets/244198/24955928/4ec00a8e-1f7d-11e7-877e-6a32754e669b.png)
...where pressing enter would trigger a row handler and to allow a behavior.

In `react-bootstrap-table` I get a selection around the selection checkbox but I don't seem to be able to perform the similar action upon the row.

![2017-04-12 at 12 46 pm](https://cloud.githubusercontent.com/assets/244198/24956138/2c731506-1f7e-11e7-8e1c-4b3210934ba4.png)

The row itself needs a `tabindex` attribute to enable this. I also don't seem to be able to add a keyboard handler to a row (I've found `keyBoardNav` in the source but it's undocumented).

So two questions:
1) Is there currently a way to add a `tabindex` to a `tr` instead of a `td`?
1) Is there a way to add a keyboard event handler to a row?

Many thanks.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.