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

    Interface IconRendererParams<TRow>

    icon 렌더러 옵션. 아이콘은 글자·이모지 또는 <svg> 문자열(icons 옵션과 같은 정화).

    interface IconRendererParams<TRow = unknown> {
        icon?: string | ((ctx: WidgetCtx<TRow>) => string | null | undefined);
        label?: string | ((ctx: WidgetCtx<TRow>) => string);
        map?: Record<string, string>;
        onClick?: (ctx: WidgetCtx<TRow> & { event: MouseEvent }) => void;
        position?: "only" | "before" | "after";
        size?: number;
        tone?: Tone;
    }

    Type Parameters

    • TRow = unknown
    Index
    icon?: string | ((ctx: WidgetCtx<TRow>) => string | null | undefined)
    label?: string | ((ctx: WidgetCtx<TRow>) => string)
    map?: Record<string, string>
    onClick?: (ctx: WidgetCtx<TRow> & { event: MouseEvent }) => void
    position?: "only" | "before" | "after"
    size?: number
    tone?: Tone