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

    Interface CellEditorProps<TRow>

    셀 에디터 컴포넌트가 받는 props. value는 편집 시작 값, 현재 값은 onChange로 알린다.

    interface CellEditorProps<TRow> {
        columnId: string;
        columnTitle?: string;
        editorParams?: EditorParams;
        error: string | null;
        locale?: CellLocale;
        reportError?: (where: string, cause: unknown) => void;
        row: TRow;
        rowIndex: number;
        rowKey: RowKey;
        startKey?: string;
        trigger: CellEditTrigger;
        value: unknown;
        cancel(): void;
        commit(): void;
        onChange(value: unknown): void;
    }

    Type Parameters

    • TRow

    Hierarchy

    Index
    columnId: string
    columnTitle?: string

    컬럼 제목(헤더 글자). 편집기의 접근 이름에 쓴다.

    editorParams?: EditorParams

    ColumnDef.editorParams(내장 편집기 입력 속성). 사용자 어댑터는 그대로 받는다.

    error: string | null

    검증 실패 메시지. 없으면 null.

    locale?: CellLocale
    reportError?: (where: string, cause: unknown) => void

    Type Declaration

      • (where: string, cause: unknown): void
      • 콜백 예외를 그리드의 error 이벤트(callback-error)로 알린다.

        Parameters

        • where: string
        • cause: unknown

        Returns void

    row: TRow
    rowIndex: number
    rowKey: RowKey
    startKey?: string

    trigger: 'key'일 때 편집을 시작한 키.

    value: unknown
    • Returns void

    • 확정을 요청한다. 처리 여부(검증·IME 조합 중 보류)는 편집 시스템이 정한다.

      Returns void

    • 입력이 바뀔 때마다 현재 값을 알린다. 확정 시 이 값이 검증·저장된다.

      Parameters

      • value: unknown

      Returns void