SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.enterToTab  property

如果为true,就会在输入enter键时,移动到下个单元格。 

如果enterToNextRowtrue,就会移动到同一列位置的下个行。 

默认值为true.

Getter
function enterToTab(): Boolean
Setter
function setEnterToTab(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            enterToTab: true,
            enterToNextRow: true
        }
    });
Code -2
    grid.setEditOptions({
        enterToTab: true,
        enterToNextRow: true
    });
Code -3
    grid.editOptions().setEnterToTab(true);
See Also
crossWhenExitLast
appendWhenExitLast
enterToNextRow
enterToEdit
useTabKey
单元格编辑概述
Examples
编辑键
单元格编辑