SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.commitOnLastCell  property

如果为true,就会在编辑行的最后一个单元格中,输入EnterTab键时,将会提交行。 

为了只提交单元格而非行,可以使用hideOnLastCell(ver1.3)。 

默认值为false.

Getter
function commitOnLastCell(): Boolean
Setter
function setCommitOnLastCell(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            commitOnLastCell: true
        }
    });
Code -2
    grid.setEditOptions({
        commitOnLastCell: true
    });
Code -3
    grid.editOptions().setCommitOnLastCell(true);
See Also
hideOnLastCell
crossWhenExitLast
useTabKey
commit
单元格编辑概述
Examples
单元格编辑
编辑键