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

    Interface PickerOptions

    단독 선택기 옵션: 컬럼의 dateTime 옵션에 처음 값·언어·알림이 더해진다.

    interface PickerOptions {
        allowedHours?: number[];
        allowedMinutes?: number[];
        allowedSeconds?: number[];
        ariaLabel?: string;
        clearValue?: string | null;
        confirm?: boolean;
        hour12?: boolean;
        hourStep?: number;
        isDateDisabled?: (date: string) => boolean;
        isTimeDisabled?: (time: string, date: string | undefined) => boolean;
        labels?: {
            months?: string[];
            monthTitle?: (year: number, month: number) => string;
            weekdays?: string[];
            yearTitle?: (year: number) => string;
        };
        locale?: LocaleCode;
        localePacks?: readonly LocalePack[];
        max?: string;
        min?: string;
        openOnEdit?: boolean;
        pickOnly?: boolean;
        placeholder?: string;
        seconds?: boolean;
        secondStep?: number;
        startDate?: | string
        | ((ctx: { columnId: string; row: unknown; rowKey: RowKey }) => string);
        step?: number;
        value?: string | null;
        weekNumbers?: boolean;
        weekStart?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
        onCancel?(): void;
        onChange?(value: string | null): void;
        onError?(where: string, cause: unknown): void;
    }

    Hierarchy (View Summary)

    Index
    allowedHours?: number[]

    고를 수 있는 시·분·초(나머지는 비활성). isTimeDisabled와 함께 쓰면 둘 다 허용해야 한다.

    allowedMinutes?: number[]
    allowedSeconds?: number[]
    ariaLabel?: string

    선택기의 접근 이름. 기본은 언어의 "달력"/"시간 선택".

    clearValue?: string | null

    선택기의 "지우기"가 쓰는 값. 생략하면 비운다.

    confirm?: boolean

    날짜 선택기에도 확인 버튼을 둔다. 기본 false.

    hour12?: boolean

    12시간제(오전·오후 열). 생략하면 언어를 따른다. 값 형식은 항상 24시간이다.

    hourStep?: number

    시 간격(1~12 정수). 기본 1.

    isDateDisabled?: (date: string) => boolean

    고를 수 없는 날짜('YYYY-MM-DD'). 예외를 던지면 고를 수 있는 것으로 본다(callback-error).

    isTimeDisabled?: (time: string, date: string | undefined) => boolean

    고를 수 없는 시각('HH:mm' 또는 'HH:mm:ss')과 그때 고른 날짜(datetime에서만). 예외 규칙은 위와 같다.

    labels?: {
        months?: string[];
        monthTitle?: (year: number, month: number) => string;
        weekdays?: string[];
        yearTitle?: (year: number) => string;
    }

    달력 문구 바꾸기. months는 12개, weekdays는 7개(일요일부터).

    locale?: LocaleCode

    언어 코드. 기본 'ko'(그리드 기본과 같다). 팩은 registerLocale이나 localePacks로 준다.

    localePacks?: readonly LocalePack[]
    max?: string
    min?: string

    값과 같은 형식의 문자열('2026-01-01', '09:00', '2026-01-01 09:00'). 이보다 이르면 고를 수 없고 검증이 막는다.

    openOnEdit?: boolean

    편집을 시작하면 선택기를 바로 연다. 기본 false.

    pickOnly?: boolean

    입력칸을 읽기 전용으로 하고 선택기로만 값을 정한다. 기본 false.

    placeholder?: string
    seconds?: boolean

    초를 고르고 값에 :ss를 붙인다. 기본 false.

    secondStep?: number

    초 간격: 1·2·5·10·15·20·30. 기본 1.

    startDate?:
        | string
        | ((ctx: { columnId: string; row: unknown; rowKey: RowKey }) => string)

    값이 없을 때 달력이 보여 줄 달('YYYY-MM-DD' 또는 행별 함수).

    step?: number

    분 간격: 60의 약수(1·2·3·4·5·6·10·12·15·20·30). 기본 1.

    value?: string | null

    처음 값(달 YYYY-MM, 날짜 YYYY-MM-DD, 시간 HH:mm[:ss], 날짜+시간 YYYY-MM-DD HH:mm[:ss]). 읽을 수 없으면 빈 값.

    weekNumbers?: boolean

    달력에 ISO 8601 주 번호를 보인다. 기본 false.

    weekStart?: 0 | 1 | 2 | 3 | 4 | 5 | 6

    한 주 시작 요일(0=일요일). 생략하면 언어팩 formats.firstDayOfWeek > Intl > 0.

    • 월·연도 패널이 없을 때 Esc를 누르면 부른다(선택기를 닫거나 숨기는 것은 호출자 몫이다).

      Returns void

    • 값이 실제로 바뀔 때만 부른다(같은 값을 다시 고르거나 바뀐 것 없이 Enter를 눌러도 부르지 않는다). date는 날을 고를 때, time은 값이 바뀔 때마다, datetime은 확인(Enter)을 눌렀을 때. 지우면 null.

      Parameters

      • value: string | null

      Returns void

    • isDateDisabled·isTimeDisabled가 던졌을 때 알린다(그 값은 고를 수 있는 것으로 본다). 기본은 console.error.

      Parameters

      • where: string
      • cause: unknown

      Returns void