NoxGrid Web API
    Preparing search index...

    Interface ColumnOptions

    Column options.

    interface ColumnOptions {
        align?: HorizontalAlignment;
        backColor?: string;
        bold?: boolean;
        buttonText?: string;
        clickable?:
            | boolean
            | (
                (
                    row: Record<string, unknown> | undefined,
                    rowIndex: number,
                ) => boolean
            );
        emptyText?: string;
        field?: string;
        fillWeight?: number;
        filterable?: boolean;
        footer?: FooterFunction;
        footerFormat?: string;
        footerText?:
            | string
            | ((ctx: { rowCount: number; visibleRowCount: number }) => string);
        foreColor?: string;
        format?: string;
        group?: string | string[];
        header?: string;
        headerCheckBox?: boolean;
        headerToolTip?: string | ((col: number) => string | undefined);
        images?: Record<string, string | HTMLImageElement>;
        items?: (string | ComboItem)[];
        kind?: ColumnKind;
        maximum?: number;
        maxLength?: number;
        mergeMode?: MergeMode;
        minimum?: number;
        minWidth?: number;
        name?: string;
        pattern?: string;
        readOnly?: boolean;
        required?: boolean;
        resizable?: boolean;
        sortable?: boolean;
        sortCompare?: (
            a: CellValue,
            b: CellValue,
            rowA: number,
            rowB: number,
        ) => number;
        sortValue?: (
            row: Record<string, unknown> | undefined,
            rowIndex: number,
        ) => CellValue;
        tag?: unknown;
        toolTip?: (
            row: Record<string, unknown> | undefined,
            rowIndex: number,
        ) => string | undefined;
        validationMessage?: string;
        valueList?: CellValue[];
        verticalAlignment?: VerticalAlignment;
        visible?: boolean;
        width?: number;
        wrapText?: boolean;
    }
    Index
    backColor?: string
    bold?: boolean
    buttonText?: string

    Button text (the cell value if omitted).

    clickable?:
        | boolean
        | ((row: Record<string, unknown> | undefined, rowIndex: number) => boolean)

    The cells react to clicks (your cellClick handler opens something): pointer cursor, and the text is underlined under the mouse. A function decides per row, e.g. (row) => row?.sent === 'Y'.

    emptyText?: string

    Text shown in empty cells (e.g. '-'). Display only: values, sorting and CSV are not affected.

    field?: string

    Field name in the bound data.

    fillWeight?: number

    Share of the grid's spare width this column takes (like the desktop FillWeight). Columns with a fill weight grow so the columns fill the grid; width is then the minimum. 0 (default) keeps the column at its width.

    filterable?: boolean

    What the footer row (grid footerVisible) shows for this column.

    footerFormat?: string

    Format of the footer value (default: the column format; count uses "#,##0").

    footerText?:
        | string
        | ((ctx: { rowCount: number; visibleRowCount: number }) => string)

    Footer text when footer is 'text' (e.g. "Total").

    foreColor?: string
    format?: string

    Number or date format (e.g. "#,##0", "0.00%", "yyyy-MM-dd").

    group?: string | string[]

    Group header above the column header (multi-row headers). Adjacent columns with the same group share one merged cell. Levels from the top: '2026 H1|January' or ['2026 H1', 'January'].

    header?: string

    Header text.

    headerCheckBox?: boolean

    Check columns: a check box in the header that checks or unchecks every shown row (filtered-out and subtotal rows are left as they are). It shows a mixed state when some rows are checked. Clicking the header toggles it (no sorting); raises headerCheckChanged. Like the desktop HeaderCheckBox.

    headerToolTip?: string | ((col: number) => string | undefined)

    Tooltip for the column header (e.g. a code behind the header text), or a function of the column index. Like the desktop column ToolTipText.

    images?: Record<string, string | HTMLImageElement>

    Image column: maps a value to an image URL or image.

    items?: (string | ComboItem)[]

    Combo box items.

    kind?: ColumnKind
    maximum?: number

    Maximum value for a progress column (default 100).

    maxLength?: number
    mergeMode?: MergeMode
    minimum?: number
    minWidth?: number
    name?: string

    Name used to look up the column in code.

    pattern?: string

    Regular expression.

    readOnly?: boolean
    required?: boolean
    resizable?: boolean
    sortable?: boolean

    Header click sorts. Default true; false for 'check', 'combo', 'button', 'image' and 'progress' columns (same as the desktop grid and DataGridView).

    sortCompare?: (a: CellValue, b: CellValue, rowA: number, rowB: number) => number

    Compares two values of this column when sorting (like the desktop SortCompare). Return the ascending result (negative: a first); the grid reverses it for a descending sort, and 0 keeps the current order. Empty values are passed too. Without it, text compares in natural Korean order (2 before 10) and empty cells always go last.

    sortValue?: (
        row: Record<string, unknown> | undefined,
        rowIndex: number,
    ) => CellValue

    The value to sort by instead of the cell value: receives the bound object of the row (undefined when unbound) and the row index. E.g. a status column shown as text but sorted by a number: sortValue: (row) => row?.daysLeft.

    tag?: unknown

    User-defined data.

    toolTip?: (
        row: Record<string, unknown> | undefined,
        rowIndex: number,
    ) => string | undefined

    Tooltip for the cells of this column (e.g. the address behind a link icon). Return '' or undefined for none. Shown on mouse hover.

    validationMessage?: string
    valueList?: CellValue[]

    Allowed values.

    verticalAlignment?: VerticalAlignment
    visible?: boolean
    width?: number
    wrapText?: boolean