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

    Interface GanttOptions

    Options of createGantt (unknown keys or bad values throw RangeError).

    interface GanttOptions {
        ariaLabel?: string;
        barHeight?: number;
        collapsed?: string[];
        editable?: boolean | GanttEditable;
        licenseKey?: string;
        locale?: GanttLocale;
        resetScrollOnData?: boolean;
        rowHeight?: number;
        showToday?: boolean;
        showWeekends?: boolean;
        today?: string;
        verticalScroll?: "own" | "external";
        zoom?: GanttZoom;
    }
    Index
    ariaLabel?: string

    Accessible name of the chart.

    barHeight?: number

    Default round(rowHeight * 0.5).

    collapsed?: string[]

    Task ids that start collapsed.

    editable?: boolean | GanttEditable

    1.8: drag to move, resize, change progress and link tasks. Default false (read-only). true turns every kind on; an object switches single kinds ({ link: false } = everything but links; a missing key is on). A kind that is off is not offered: no handle, cursor, drag, key command or event for it.

    licenseKey?: string

    MaxGrid license key. Optional: the global key (MaxGrid.config({ licenseKey })) is used when this is not set.

    locale?: GanttLocale

    Header and label language.

    resetScrollOnData?: boolean

    Scroll to the initial position again on every setData (default: only on the first).

    rowHeight?: number

    Row height in px (32; 24 is compact). Must match the grid's row height when synced.

    showToday?: boolean

    Draw the today line.

    showWeekends?: boolean

    Shade non-working days.

    today?: string

    YYYY-MM-DD; test hook, default is the real date.

    verticalScroll?: "own" | "external"

    'external' (1.7.2): the chart never scrolls vertically by itself; a host scroller around the grid and the chart does, and tells the chart through gantt.external (used by createSplitView for the single scrollbar). Rows are whole px in this mode. Default 'own'. Set at creation; setOptions does not change it.

    zoom?: GanttZoom

    Initial zoom. Default 'day'.