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

    Interface EditorParams

    내장 편집기의 입력 요소 속성(기본값은 1.3.2 동작과 같다). 사용자 어댑터는 ctx.editorParams로 그대로 받는다.

    interface EditorParams {
        align?: "end" | "start" | "center";
        allowCustom?: boolean;
        alpha?: boolean;
        autoCommit?: boolean;
        autoComplete?: string | boolean;
        case?: "lower" | "upper";
        commitOnPick?: boolean;
        debounceMs?: number;
        decimals?: number;
        group?: string | boolean;
        inputMode?:
            | "none"
            | "text"
            | "search"
            | "numeric"
            | "decimal"
            | "tel"
            | "email"
            | "url";
        itemAlign?: "end"
        | "start"
        | "center";
        keepMask?: boolean;
        layout?: "sides" | "stacked";
        loadingText?: string;
        match?: "contains" | "startsWith";
        max?: number;
        maxHeight?: number;
        maxLength?: number;
        min?: number;
        minChars?: number;
        negative?: boolean;
        noResultsText?: string;
        overwrite?: boolean;
        pattern?: string;
        patternMessage?: string;
        pickSingleMatch?: boolean;
        placeholder?: string;
        placeholderChar?: string;
        renderItem?: (option: EditorOption, ctx: { query: string }) => string;
        repeat?: number;
        resize?: boolean;
        rows?: number;
        scale?: number;
        secret?: boolean;
        selectAll?: boolean;
        separator?: string;
        slot?: Record<string, string>;
        source?: (
            query: string,
            ctx: {
                columnId: string;
                row: unknown;
                rowKey: RowKey;
                signal: AbortSignal;
            },
        ) => Promise<EditorOption[]>;
        step?: number;
        swatches?: string[];
        typing?: boolean;
        valueAs?: "string" | "array";
    }
    Index
    align?: "end" | "start" | "center"
    allowCustom?: boolean
    alpha?: boolean

    color: true면 #rrggbbaa(투명도 포함).

    autoCommit?: boolean
    autoComplete?: string | boolean

    true → on, false → off, 문자열 → 그 값. 생략하면 속성을 붙이지 않는다.

    case?: "lower" | "upper"

    텍스트: 입력을 소문자 또는 대문자로.

    commitOnPick?: boolean
    debounceMs?: number
    decimals?: number

    숫자·백분율: 소수 자릿수(0~10). 없으면 제한 없음.

    group?: string | boolean

    숫자·백분율: 입력 중 천 단위 구분. true는 언어 기준, 문자열은 그 문자.

    inputMode?:
        | "none"
        | "text"
        | "search"
        | "numeric"
        | "decimal"
        | "tel"
        | "email"
        | "url"
    itemAlign?: "end" | "start" | "center"
    keepMask?: boolean
    layout?: "sides" | "stacked"
    loadingText?: string
    match?: "contains" | "startsWith"

    콤보박스: 걸러 내는 방식(기본 'contains').

    max?: number
    maxHeight?: number
    maxLength?: number

    입력 글자 수 제한(1~10000). 숫자 편집기는 입력 문자 수를 제한한다.

    min?: number
    minChars?: number
    negative?: boolean

    숫자·백분율: false면 - 입력을 막는다. 기본 true.

    noResultsText?: string
    overwrite?: boolean
    pattern?: string

    텍스트: 정규식 원문(200자 이하, 전체 일치).

    patternMessage?: string
    pickSingleMatch?: boolean
    placeholder?: string
    placeholderChar?: string
    renderItem?: (option: EditorOption, ctx: { query: string }) => string

    목록 항목 글자(HTML 아님).

    repeat?: number

    스테퍼: 버튼을 누르고 있을 때 반복 간격(ms, 30~500, 0이면 반복 없음).

    resize?: boolean

    textarea: 크기 조절 손잡이. 기본 false.

    rows?: number

    textarea: 보이는 줄 수(1~12). 기본 4.

    scale?: number

    숫자·백분율: 저장 값 = 보이는 값 / scale. 백분율 기본 100.

    secret?: boolean

    텍스트: 입력 칸을 가린다(비밀번호 모양).

    selectAll?: boolean
    separator?: string

    다중 선택: 구분 문자·전체 선택 행·값 형태.

    slot?: Record<string, string>

    마스크: 패턴은 pattern에 쓴다(# 숫자, A 글자, * 글자·숫자, 역슬래시는 다음 글자 그대로).

    source?: (
        query: string,
        ctx: {
            columnId: string;
            row: unknown;
            rowKey: RowKey;
            signal: AbortSignal;
        },
    ) => Promise<EditorOption[]>

    원격: 검색 함수.

    step?: number

    스테퍼: 한 번에 바꾸는 크기(0보다 큼).

    swatches?: string[]

    color: 견본 색(#rrggbb) 목록.

    typing?: boolean

    스테퍼: false면 입력칸을 읽기 전용으로.

    valueAs?: "string" | "array"