javascript - 在ag-grid中单击tab键时如何获取下一个/上一个单元格定义
问题描述
我正在使用ag-grid
,我需要在ag-grid
. 请找到plnkr 网址。单击 Tab 键时,请提供您的输入以获取下一个/上一个单元格定义。
解决方案
参考文档:示例自定义导航
有一个事件和属性。
[tabToNextCell]="tabToNextCell"
[navigateToNextCell]="navigateToNextCell"
另请参阅tabToNextCell。
interface TabToNextCellParams {
// true if the shift key is also down
backwards: boolean;
// true if the current cell is editing (you may want to skip cells that are not editable,
// as the grid will enter the next cell in editing mode also if tabbing)
editing: boolean;
// the cell that currently has focus
previousCellDef: GridCellDef;
// the cell the grid would normally pick as the next cell for this navigation
nextCellDef: GridCellDef;
}
推荐阅读
- python - 对分组数据框进行排序
- download - 无需下载即可创建 Pytorch 数据集
- elixir - Object 和 %Object{} 的区别
- flutter - 有没有办法在集成测试中重新启动应用程序,同时保留应用程序数据?
- reactjs - Reactjs 从子组件(使用 hookReducer)获取状态值到父组件
- python - fit() 方法中的 batch_size 和 LSTM 输入中的批处理有什么区别?Python
- oracle19c - 未在 OSB 12c Fusion MiddleWare 中使用 DB 适配器更新表
- wordpress - 如何限制 WordPress 中非管理员/用户对特定目录中文件的访问
- td-engine - TDengine 数据丢失问题
- android - 带有多个背景列表的屏幕