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

    Interface ImageRendererParams<TRow>

    image 렌더러 옵션. 셀 값(문자열)이 주소다.

    interface ImageRendererParams<TRow = unknown> {
        alt?: string | ((ctx: WidgetCtx<TRow>) => string);
        fallback?: "text" | "hide";
        fit?: "contain" | "cover";
        height?: number | "row";
        map?: Record<string, string>;
        onClick?: (ctx: WidgetCtx<TRow> & { event: MouseEvent }) => void;
        shape?: "square" | "round";
        src?: string | ((ctx: WidgetCtx<TRow>) => string | null | undefined);
        width?: number;
    }

    Type Parameters

    • TRow = unknown
    Index
    alt?: string | ((ctx: WidgetCtx<TRow>) => string)
    fallback?: "text" | "hide"

    불러오지 못했거나 허용되지 않은 주소: 'hide'(기본)는 아무것도 안 그린다, 'text'는 셀 글자.

    fit?: "contain" | "cover"
    height?: number | "row"

    숫자(px, 기본 20) 또는 'row'(행 높이 - 4px). 행 높이를 넘지 않는다.

    map?: Record<string, string>

    값 → 주소. src보다 먼저 본다.

    onClick?: (ctx: WidgetCtx<TRow> & { event: MouseEvent }) => void
    shape?: "square" | "round"
    src?: string | ((ctx: WidgetCtx<TRow>) => string | null | undefined)
    width?: number