The basic compendium browser class allowing the browsing of compendiums by utilising their indexes.

Extending classes must define the following static properties if the browser is not meant to browse Item documents: documentName. Extending classes should define the following static properties: typeName, filterClasses.

Hierarchy (view full)

Constructors

Properties

_debouncedRender: ((...args: [force?: boolean, options?: RenderOptions<ApplicationOptions>]) => void)
_entries: undefined | IndexEntry[]
_refocus: boolean = true
entries: Collection<IndexEntry>

The Collection of index entries this browser is aware of.

expandedFilters: Set<string> = ...

A set of filters that were expanded by the user, and should stay expanded upon re-render.

filters: Collection<BaseFilter> = ...

The set of filters to apply to the compendium index.

handledTypes: Set<string> = ...

The types of entries this browser handles, as per a document's type property.

packs: CompendiumCollection<any>[] = []

Compendium packs this browser gets entries from.

documentName: "Actor" | "Item" = "Item"

The document name of entries this browser displays.

ENTRY_TEMPLATE: string = "systems/pf1/templates/apps/compendium-browser/entries.hbs"

The template used to render individual entries in the browser.

filterClasses: typeof PackFilter[] = ...

An array of classes extending BaseFilter that should be used for this browser.

typeName: string = "PF1.Feats"

A localisation string used in the browser's title.

Accessors

  • get defaultOptions(): InsertKeys<{}, OmitByValue<{
        classes: string[];
        dragDrop: {
            dragSelector: string;
            dropSelector: null;
        }[];
        height: number;
        id: string;
        left: number;
        resizable: boolean;
        scrollY: string[];
        template: string;
        top: number;
        width: number;
    }, never>>
  • Assign the default options configuration which is used by this Application class. The options and values defined in this object are merged with any provided option values which are passed to the constructor upon initialization. Application subclasses may include additional options which are specific to their usage.

    Returns InsertKeys<{}, OmitByValue<{
        classes: string[];
        dragDrop: {
            dragSelector: string;
            dropSelector: null;
        }[];
        height: number;
        id: string;
        left: number;
        resizable: boolean;
        scrollY: string[];
        template: string;
        top: number;
        width: number;
    }, never>>

Methods