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

    Derivate of Foundry's Item.createDialog() functionality.

    Hierarchy

    • HandlebarsApplication<this> & ApplicationV2<
          RenderContext,
          Configuration,
          RenderOptions,
          this,
      >
      • CreateDialog
    Index

    Constructors

    • Parameters

      • __namedParameters: { creationData?: {} } = {}

      Returns CreateDialog

    Properties

    createData: object = {}

    Data to create actual item from

    initialData: object

    Data supplied to dialog for creation

    DEFAULT_OPTIONS: {
        classes: string[];
        form: {
            handler: (
                ...this: any,
                event: SubmitEvent,
                form: HTMLFormElement,
                formData: FormDataExtended,
            ) => Promise<void>;
        };
        position: { height: string };
        tag: string;
    } = ...
    PARTS: { footer: { template: string }; form: { template: string } } = ...

    Accessors

    • get pack(): void | CompendiumCollection<any>

      Pack this item is being created in.

      Returns void | CompendiumCollection<any>

    • get packType(): string | void

      Get most common item type in pack.

      Returns string | void

    • get promise(): Promise<any>

      Returns Promise<any>

    • get title(): any

      Returns any

    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

    • Parameters

      • formConfig: object
      • event: Event

      Returns void

    • Parameters

      • options: any

      Returns void

    • Internal

      Parameters

      • context: object

        Context

      • _options: object

        Render options

      Returns object

      • Same as context param
    • Parameters

      • partId: string
      • context: object
      • options: object

      Returns object

    • Internal

      Parameters

      • data: object = {}

      Returns object

    • Returns string

    • Parameters

      • type: string

        Item type

      Returns null | Record<string, string>

      • Option mapping
    • Parameters

      • ...this: any
      • event: SubmitEvent
      • form: HTMLFormElement
      • formData: FormDataExtended

      Returns Promise<void>

    • Wait for dialog to the resolved.

      Parameters

      • Optionaloptions: object = {}

        Options to pass to the constructor.

      • renderOptions: object = {}

        Options to render call

      Returns Promise<null | Item<"base" | ModuleSubType>>

      Created item or null.

      • Refactor this to be normal prompt() override
      • Handle template and context parameters as dictated by Foundry API
    • Parameters

      • ...args: any[]

      Returns Promise<null | Item<"base" | ModuleSubType>>