Handsontable:完成一行后跳转到下一行的开头
Handsontable: Jumping to the start of the next row when a row is completed
我使用 Handsontable 是为了让人们输入数据。我希望他们在完成单元格时使用制表符或输入,在完成单元格填充时按下这些键。
完成一行后,他们显然也会使用回车,有点像打字机。但是,它们不会跳到下一行的第一个单元格。
我可以使用 enterMoves
选项进行配置:
minSpareCols: 0,
minSpareRows: 1,
enterMoves: {row: 0, col: 1}
据 GitHub、this feature should be in the main code 上的一位人士称:
I implemented your suggestion into core :) Please use the following
set of params and let me know what you think:
minSpareCols: 0,
enterMoves: {row: 0, col: 1}
Here's a JSFiddle with my code.
我用数据填充了一行,但按回车键没有任何反应。
有什么方法可以启用这个功能吗?
感谢AMBudnik on Github,此问题已得到解答:
enterMoves
can be a functions as well, so you can determine how to
move when selection reaches the last column.
Here is a demo where I move the
selection one column right and after we reach the last column we pick
the first cell in the next row.
我使用 Handsontable 是为了让人们输入数据。我希望他们在完成单元格时使用制表符或输入,在完成单元格填充时按下这些键。
完成一行后,他们显然也会使用回车,有点像打字机。但是,它们不会跳到下一行的第一个单元格。
我可以使用 enterMoves
选项进行配置:
minSpareCols: 0,
minSpareRows: 1,
enterMoves: {row: 0, col: 1}
据 GitHub、this feature should be in the main code 上的一位人士称:
I implemented your suggestion into core :) Please use the following set of params and let me know what you think:
minSpareCols: 0, enterMoves: {row: 0, col: 1}
Here's a JSFiddle with my code.
我用数据填充了一行,但按回车键没有任何反应。
有什么方法可以启用这个功能吗?
感谢AMBudnik on Github,此问题已得到解答:
enterMoves
can be a functions as well, so you can determine how to move when selection reaches the last column.Here is a demo where I move the selection one column right and after we reach the last column we pick the first cell in the next row.