SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.alertMinLengthError  property

如果为true,就会在输入比起指定在编辑器的minLength更短的文本的状态下提交编辑时, 将会显示警告信息。 

默认值为true.

Getter
function alertMinLengthError(): Boolean
Setter
function setAlertMinLengthError(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            alertMinLengthError: true
        }
    });
Code -2
    grid.setEditOptions({
        alertMinLengthError: true
    });
Code -3
    grid.editOptions().setAlertMinLengthError(true);
See Also
minLengthMessage
TextCellEditor.minLength
TextCellEditor.maxLength
MultilineCellEditor.minLength
MultilineCellEditor.maxLength
Examples
文本单元格编辑器
单元格编辑