我正在使用ag-grid
,需要使用ag-grid
中的tab事件显示下一个单元格定义和上一个单元格定义。请找到plnkr url。
单击选项卡键时,请提供输入以获得下一个/上一个单元格定义。
答案 0 :(得分:1)
请参阅文档:Example Custom Navigation
有一个事件和属性。
[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;
}