Hierarchy

  • DocumentSheet
    • ContentSourceEditor

Constructors

  • Parameters

    • object: Document<any, any, Metadata<any>>

      Some object or entity which is the target to be updated.

    • Optionaloptions: Partial<DocumentSheetOptions>

      Additional options which modify the rendering of the sheet. (default: {})

    Returns ContentSourceEditor

    Foundry allows passing no value to the constructor at all.

  • Parameters

    • Rest...args: [Document<any, any, Metadata<any>>, Partial<DocumentSheetOptions>?]

    Returns ContentSourceEditor

Accessors

  • get defaultOptions(): {
        classes: string[];
        closeOnSubmit: boolean;
        dragDrop: {
            dragSelector: string;
            dropSelector: null;
        }[];
        height: string;
        resizable: boolean;
        sheetConfig: boolean;
        submitOnChange: boolean;
        submitOnClose: boolean;
        tabs: {
            contentSelector: string;
            group: string;
            navSelector: string;
        }[];
        width: number;
    }
  • Returns {
        classes: string[];
        closeOnSubmit: boolean;
        dragDrop: {
            dragSelector: string;
            dropSelector: null;
        }[];
        height: string;
        resizable: boolean;
        sheetConfig: boolean;
        submitOnChange: boolean;
        submitOnClose: boolean;
        tabs: {
            contentSelector: string;
            group: string;
            navSelector: string;
        }[];
        width: number;
    }

    • classes: string[]
    • closeOnSubmit: boolean
    • dragDrop: {
          dragSelector: string;
          dropSelector: null;
      }[]
    • height: string
    • resizable: boolean
    • sheetConfig: boolean
    • submitOnChange: boolean
    • submitOnClose: boolean
    • tabs: {
          contentSelector: string;
          group: string;
          navSelector: string;
      }[]
    • width: number
    foundry.utils.mergeObject(super.defaultOptions, {
    classes: ["sheet"],
    template: `templates/sheets/${this.name.toLowerCase()}.html`,
    viewPermission: CONST.DOCUMENT_PERMISSION_LEVELS.LIMITED,
    sheetConfig: true
    });

Methods

  • Internal

    Handle content source drop

    Parameters

    • event: DragEvent
    • dropData: object

    Returns Promise<void>

    • Does not work correctly when dealing with
  • Parameters

    • event: any
    • updateData: any

    Returns Promise<undefined | Document<any, any, Metadata<any>>>