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

Hierarchy (View Summary)

Constructors

Properties

Accessors

Methods

Constructors

Properties

_activeEdits: Record<string, string> = {}
_filters: Set<any>

Track the set of item filters which are applied

_itemUpdates: object[]

Track item updates from the actor sheet.

effectiveSearch: string
searchCompositioning: boolean

Item search

searchDelay: number
searchDelayEvent: null | Timeout
searchRefresh: boolean
_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

    • elem: Element
    • Optionaloptions: { animation?: boolean; rollData?: object } = {}

      Additional options

    Returns Promise<void>

  • Internal

    Parameters

    • item: object

      Item render data

    • section: object

      Section configuration

    • context: object

      Render context

    Returns void

  • 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;
        },
    >