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

Hierarchy

  • FormApplication
    • CreateDialog

Constructors

  • Parameters

    • Optional data: object = {}

      Initial item data

    • Optional options: {
          options: undefined | object;
          pack: any;
          parent: any;
          resolve: undefined | Function;
          types: string[];
      } = {}

      Optional configuration

      • options: undefined | object

        FormApplication options

      • pack: any

        Pack reference given to Item.create()

      • parent: any

        Parent reference given to Item.create()

      • resolve: undefined | Function

        Resolve callback

      • types: string[]

        Array of types to limit the choices to.

    Returns CreateDialog

Properties

createData: object = {}
pack: any
parent: any
resolve: undefined | Function
types: string[]

Accessors

  • get defaultOptions(): {
        classes: string[];
        closeOnSubmit: boolean;
        height: string;
        submitOnChange: boolean;
        submitOnClose: boolean;
    }
  • Returns {
        classes: string[];
        closeOnSubmit: boolean;
        height: string;
        submitOnChange: boolean;
        submitOnClose: boolean;
    }

    • classes: string[]
    • closeOnSubmit: boolean
    • height: string
    • submitOnChange: boolean
    • submitOnClose: boolean

Methods

  • Returns {
        defaultName: any;
        folder: any;
        folders: {
            [k: string]: T;
        };
        hasFolders: boolean;
        name: any;
        subtype: any;
        subtypes: null | {};
        type: any;
        types: {
            [k: string]: T;
        };
    }

    • defaultName: any
    • folder: any
    • folders: {
          [k: string]: T;
      }
      • [k: string]: T
    • hasFolders: boolean
    • name: any
    • subtype: any
    • subtypes: null | {}
    • type: any
    • types: {
          [k: string]: T;
      }
      • [k: string]: T
  • Wait for dialog to the resolved.

    Parameters

    • Optional data: object

      Initial data to pass to the constructor.

    • Optional options: object = {}

      Options to pass to the constructor.

    Returns Promise<null | Item>

    Created item or null.

Generated using TypeDoc