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

Hierarchy

  • any
    • CreateDialog

Constructors

Properties

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

Accessors

Methods

  • Parameters

    • event: SubmitEvent
    • form: HTMLFormElement
    • formData: FormDataExtended

    Returns Promise<void>

  • Wait for dialog to the resolved.

    Parameters

    • Optionaloptions: object = {}

      Options to pass to the constructor.

    Returns Promise<null | Item>

    Created item or null.