맥스그리드 API 레퍼런스
    Preparing search index...

    Interface CellValidation<TRow>

    컬럼 값 검증 규칙. 순서: 타입 → required → min/max/maxLength → custom.

    interface CellValidation<TRow> {
        custom?: (value: unknown, row: TRow) => string | null | undefined;
        max?: number;
        maxLength?: number;
        min?: number;
        required?: boolean;
        unique?: boolean;
    }

    Type Parameters

    • TRow
    Index
    custom?: (value: unknown, row: TRow) => string | null | undefined

    문자열을 돌려주면 그 메시지로 실패한다. 던지면 실패로 취급하고 error 이벤트를 낸다.

    max?: number
    maxLength?: number
    min?: number
    required?: boolean
    unique?: boolean

    true면 이 컬럼의 값이 모든 데이터 행에서 유일해야 한다(빈 값은 제외, 문자열은 앞뒤 공백을 뗀 뒤 비교).