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

    • get title(): any

      Returns any

    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

    • Internal

      The event handler for changes to form input elements

      Parameters

      • formConfig: ApplicationFormConfiguration

        The configuration of the form being changed

      • event: Event

        The triggering event

      Returns void

    • Parameters

      • context: any
      • options: any

      Returns Promise<void>

    • Parameters

      • options: any

      Returns Promise<RenderContext>

    • Parameters

      • partId: any

        Part ID

      • context: any

        Context

      Returns Promise<any>

    • 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

    • 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>

    • Internal

      The event handler that is fired when the form is reset to its original values

      Parameters

      • event: Event

        The triggering event

      Returns Promise<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