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

    Interface Group

    interface Group {
        ActionButtons?: ActionButton[];
        Columns: TableColumn[];
        FormRows?: FormRow[];
        MaxItems?: number;
        Name: string;
        ShowResetButton?: boolean;
        Source: ISearchWpGroupSource;
        View?: { List: string; ViewTitle: string };
    }
    Index

    Properties

    ActionButtons?: ActionButton[]

    Action buttons specific to this tab. At runtime, these are merged with global ActionButtons from ISearchWp. If a tab button has the same ID as a global one, the tab-level definition overrides it.

    Columns: TableColumn[]

    Defines the result table columns.

    • Without View: The array defines the complete set and order of columns.
    • With View: The array provides per-column overrides (matched by InternalName) for columns defined in the SP view. Only entries matching a view field are applied; extra entries are ignored.

    This property is always required — even when using View.

    FormRows?: FormRow[]
    MaxItems?: number
    Name: string

    Translation key for the tab name (optionally prefixed with RESX.). Used as activeTab value in custom scripts (with the RESX. prefix stripped).

    ShowResetButton?: boolean
    Source: ISearchWpGroupSource
    View?: { List: string; ViewTitle: string }

    Lets you reuse an existing SharePoint view so that you don't have to specify every TableColumn within Columns. You may still use the Columns property to override any column behavior.

    Scenario Behavior
    View + Columns Merge mode. The View defines which columns are displayed and their order (from the SP view's ViewFields). For each view column, a matching entry in Columns (by InternalName) is looked up and its properties (e.g. Name, DisplayLink, Width) are applied as overrides. Columns entries that don't match any view field are ignored.
    Columns only (no View) Columns-only mode. The Columns array defines both the set and order of displayed columns. SP field metadata enriches rendering (field title, type) when available.
    View only (no Columns) Not supported. Columns is always required.

    The SP view "Všechny faktury" defines fields [DocIcon, s_invoiceNumber, s_invoiceBarcode, ...]. The Columns array provides overrides for two of them:

    {
    "View": { "List": "{SiteUrl}/InboundInvoices", "ViewTitle": "Všechny faktury" },
    "Columns": [
    { "InternalName": "DocIcon", "DisplayLink": true, "Name": "", "Width": "16px" },
    { "InternalName": "s_invoiceBarcode", "DisplayLink": true }
    ]
    }

    Result: All view columns are displayed in the view's order. DocIcon gets a custom width and empty header; s_invoiceBarcode gets a clickable link. Other view columns (e.g. s_invoiceNumber) use their default SP field titles and no overrides.

    Type declaration

    • List: string

      Relative url of the list that contains the desired view.

      "{SiteUrl}/InboundInvoices"
      
    • ViewTitle: string

      Name of the view.

      "All Items"