TreeINFO-For-M365 documentation
    Preparing search index...

    Interface TableColumn

    Configuration for a single result table column.

    The column header label is resolved in the following order:

    1. Name — explicit override defined here (highest priority)
    2. SharePoint field Title — resolved from the site's field metadata by InternalName
    3. InternalName — used as fallback when no SP field is found (REST source only)
    Tip

    You can also modify field's SharePoint properties (see SPField)

    interface TableColumn {
        CellCSSClass?: string;
        CellStyle?: any;
        DisplayLink?: boolean;
        HeaderCSSClass?: string;
        HeaderStyle?: any;
        Hidden?: boolean;
        InternalName: string;
        Name?: string;
        RenderCellFunction?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    CellCSSClass?: string

    styles column's cells using css classes

    Note

    External CSS file: To be implemented in a future release..

    CellStyle?: any

    styles column's cells using style

    Note

    The !important rule doesn't work, so if you'd like to override style that has been set with !important, use CellCSSClass instead.

    DisplayLink?: boolean

    Whether to display a link to the item in the cell. When true and the cell value is empty, a generic "Link" text is displayed instead.

    SP source: the link is constructed automatically from SharePoint item metadata.

    REST source: the provider must include __displayLink (absolute URL string) in the response item. Without it, this option has no effect for REST sources.

    searchWp-api-contract.md — Reserved Item Fields

    HeaderCSSClass?: string

    styles the column's header using css classes

    Note

    External CSS file: To be implemented in a future release..

    HeaderStyle?: any

    styles the column's header using style

    Note

    The !important rule doesn't work, so if you'd like to override style that has been set with !important, use HeaderCSSClass instead.

    Hidden?: boolean

    Hides the table column.

    InternalName: string
    Name?: string

    Overrides the column header label. When omitted, the label is taken from the SharePoint field Title (resolved by InternalName). For REST sources without a matching SP field, InternalName is used as final fallback.

    RenderCellFunction?: string

    Name of a function in CustomScript that returns an HTML string for the cell. The function receives (value: unknown, row: Record<string, unknown>) and must return a string. The returned HTML is sanitized before rendering.

    // CustomScript:
    function renderAmount(value, row) { return `<b>${value}</b> Kč`; }