Pathfinder 1e for Foundry VTT
    Preparing search index...

    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 Summary)

    Index

    Constructors

    Properties

    _boundResetDragHide: () => void
    _debouncedRender: (...args: [options: boolean, _options?: {}]) => void
    _dragDrop: undefined | DragDrop
    _entries: undefined | null | IndexEntry[]
    constructor: typeof CompendiumBrowser
    entries: Collection<IndexEntry, Methods<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, Methods<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.

    sort: { direction: "desc" | "asc"; order: string } = ...

    The current sort order and direction for the entries in the browser.

    worldContent: boolean = true

    Include world content

    _query: undefined | string
    BROWSERS: {} = {}

    Known browsers.

    Initialized in initializeBrowsers

    DEFAULT_OPTIONS: {
        actions: {
            changeSortDirection: (...this: any, event: Event) => void;
            clearFilter: (event: PointerEvent, button: HTMLElement) => void;
            reloadPacks: Object;
            resetFilters: Object;
        };
        classes: string[];
        id: string;
        position: { height: number; left: number; top: number; width: number };
        tag: string;
        window: { icon: string; resizable: boolean };
    } = ...
    documentName: "Actor" | "Item" = "Item"

    The document name of entries this browser displays.

    StaticENTRY_TEMPLATE

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

    The template used to render individual entries in the browser.

    filterClasses: (typeof PackFilter | typeof SourceFilter)[] = ...

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

    PARTS: { form: { scrollable: string[]; template: string } } = ...
    PURGE_DELAY: number = 30_000

    Delay after closing until internal cache is purged

    Default to 30 seconds.

    Low delay since most of the heavy processing is actually fetching the indexes which has already happened.

    sortOrders: { [key: string]: string } = ...

    The columns used for sorting entries in the browser.

    typeName: string = "PF1.Feats"

    A localisation string used in the browser's title.

    Accessors

    Methods

    • Initialize configuration options for the Application instance. The default behavior of this method is to intelligently merge options for each class with those of their parents.

      • Array-based options are concatenated
      • Inner objects are merged
      • Otherwise, properties in the subclass replace those defined by a parent

      Parameters

      • options: any

        Options provided directly to the constructor

      Returns any

      Configured options for the application instance