mwg API
    Preparing search index...

    Interface TabbedListOptions<T>

    interface TabbedListOptions<T> {
        disabled?: (row: T) => boolean;
        filter?: (row: T, query: string) => boolean;
        label?: (row: T) => string;
        pageSize?: number;
        rowsFor: (tabId: string) => readonly T[];
        tabs: readonly ListTab[];
    }

    Type Parameters

    • T
    Index
    disabled?: (row: T) => boolean

    a row a player can see but not choose; move skips it

    filter?: (row: T, query: string) => boolean

    Whether a row survives the current query. Defaults to the row's label containing the query, case-insensitively; an empty query keeps every row.

    label?: (row: T) => string

    the row's display text; defaults to String(row)

    pageSize?: number

    how many rows make a page; 0 or omitted means every row is one page

    rowsFor: (tabId: string) => readonly T[]

    the rows of one tab before the query filter; the caller owns what a row is

    tabs: readonly ListTab[]

    the tabs, in display order; the first is selected at construction