CanEmpty (col)

Int, Float, Bool, Date 타입에서 데이터의 값이 없을 경우, 빈값으로 표시될 수 있도록 하는 설정입니다.
CanEmpty: 0으로 설정된 열에 대해서는 값을 지우거나 빈 값으로 설정할 수 없습니다.
해당 속성에 영향을 받는 데이터는 아래와 같습니다.

{Type: "Int", Name: "sInt", CanEmpty: 1}

data: [
    {"sInt": null},      //null 데이터
    {"sInt": undefined}, //undefined 데이터
    {}                   //데이터 없음
]

빈데이터 기본값 표시

Bool Int Float Date
CanEmpty : 0 0(unCheck) 0 0 19700101
CanEmpty : 1 "" "" "" ""

CanEmpty : 0
CanEmpty0
CanEmpty : 1
CanEmpty1

Type

number

Options

Value Description
0 빈 값 설정 불가 (default: Int, Float, Bool)
1 빈 값 설정 가능 (default: Date)

Example

// 특정 열에 대해 빈 값이 설정되도록 수정
options.Cols = [
    {Type: "Int", Name: "sPoint", CanEmpty: 1 ...},
    {Type: "Bool", Name: "sBool1", CanEmpty: 1 ...},
    ...
];

Read More

Since

product version desc
core 8.0.0.0 기능 추가