如何在 ag-grid 中单击 tab 键时获取 next/previous 单元格定义
how to get the next/previous cell definition when onclick of tab key in ag-grid
我正在使用 ag-grid
,我需要在 ag-grid
中使用选项卡事件显示下一个单元格定义和上一个单元格定义。请找到 plnkr url。
单击 Tab 键时,请提供您的输入以获取 next/previous 单元格定义。
参考文档: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;
}
我正在使用 ag-grid
,我需要在 ag-grid
中使用选项卡事件显示下一个单元格定义和上一个单元格定义。请找到 plnkr url。
单击 Tab 键时,请提供您的输入以获取 next/previous 单元格定义。
参考文档: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;
}