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

    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>

    Methods

    • Internal

      Parameters

      • data: object = {}

      Returns object

    • Returns string

    • Parameters

      • type: string

        Item type

      Returns Record<string, string> | null

      • Option mapping
    • Parameters

      • this: CreateDialog
      • 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<Item<"base" | ModuleSubType> | null>

      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<Item<"base" | ModuleSubType> | null>