AllenFang/react-bootstrap-table

tabindex and Keyboard handlers upon a Row

开放

#1,220 创建于 2017年4月12日

 (6 条评论) (0 个反应) (0 位负责人)JavaScript (795 个派生)batch import
help wantedin progress

仓库指标

星标
 (2,240 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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 ...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

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?
  2. Is there a way to add a keyboard event handler to a row?

Many thanks.

贡献者指南