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

    An application that lets the user select the sources that are allowed to be imported into the game.

    Hierarchy (View Summary)

    Index

    Constructors

    • Applications are constructed by providing an object of configuration options.

      Parameters

      • Optionaloptions: {}

        Options used to configure the Application instance (default: {})

      Returns SourcesConfig

    Properties

    fields: any
    settings: any
    DEFAULT_OPTIONS: {
        actions: {
            toggleAll: (event: PointerEvent, _target: HTMLElement) => void;
        };
        configKey: string;
        model: typeof SourcesConfigModel;
        phraseKey: string;
        window: { icon: string };
    } = ...
    PARTS: { footer: { template: string }; form: { template: string } } = ...

    Configure a registry of template parts which are supported for this application for partial rendering.

    {}

    settings: any

    Accessors

    Methods

    • Initialize the configuration for this application. Override the default ID to be unique to this settings app instance and tack on extra class.

      Parameters

      • options: ApplicationConfiguration

        The provided configuration options for the Application

      Returns ApplicationConfiguration

      The final configuration values for the application

    • Parameters

      • context: any
      • options: any

      Returns Promise<void>

    • Protected

      Filter the list of sources based on the search query (name or ID).

      Parameters

      • event: Event

        The originating change event.

      • query: string

        The search query.

      • rgx: RegExp

        The search regex.

      • content: HTMLElement

        The content element.

      Returns void

    • Protected

      Select / Unselect all sources.

      Parameters

      • event: PointerEvent

        The originating click event

      • _target: HTMLElement

        the capturing HTML element which defined a [data-action]

      Returns void

    • Internal

      Update the game settings with the new configuration

      Parameters

      • ...this: any
      • event: SubmitEvent

        The originating form submission event

      • form: HTMLFormElement

        The form element that was submitted

      • formData: FormDataExtended

        Processed data for the submitted form

        • object

          The form data in object form

      Returns Promise<void>