Override and extend the core ItemSheet implementation to handle game system specific item types

Hierarchy (View Summary)

Constructors

Properties

_activeEdits: Record<string, string> = {}
_warnedAppV1: boolean = true
EDIT_TRACKING: string[] = ...

Which fields to track edits for

Accessors

Methods

  • Protected

    Toggle inline display of an item's summary/description by expanding or hiding info div

    Parameters

    • event: ClickEvent<HTMLElement, any, any, any>

      The click event on the item

    Returns Promise<void>

  • Internal

    Parameters

    • event: Event

      Click event

    • Optionaltooltip: boolean = false

      Is this event from locked tooltip?

    Returns undefined

  • Internal

    Handle dropping content-linkable data to <textarea> or text <input>

    Parameters

    • event: DragEvent

    Returns Promise<any>

  • Protected

    Extend the parent class _updateObject method to ensure that damage ends up in an Array

    Parameters

    • event: any
    • formData: any

    Returns Promise<any>

  • Prepare item sheet data Start with the base item data and extending with additional properties for rendering.

    Returns Promise<
        {
            actor: null
            | ActorPF;
            canClassLink: boolean;
            config: config;
            cssClass: string;
            data: any;
            document: ItemPF;
            editable: any;
            embedded: boolean;
            inContainer: boolean;
            isGM: boolean;
            item: ItemPF;
            itemType: string;
            labels: Record<string, string>;
            name: null | string;
            owned: boolean;
            owner: boolean;
            rollData: object;
            system: any;
            tag: any;
        },
    >