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

Hierarchy

Constructors

Properties

_filters: Set<any>

Track the set of item filters which are applied

_itemUpdates: object[]

Track item updates from the actor sheet.

effectiveSearch: string
items: any[]
searchCompositioning: boolean

Item search

searchDelay: number
searchDelayEvent: null | Timeout
searchRefresh: boolean

Accessors

  • get defaultOptions(): InsertKeys<{
        baseApplication: null | string;
        classes: string[];
        closeOnSubmit: boolean;
        dragDrop: ({
            dragSelector: string;
            dropSelector: string;
        } | {
            dragSelector: string;
            dropSelector?: undefined;
        })[];
        editable: boolean;
        filters: Omit<SearchFilterConfiguration, "callback">[];
        height: null | number | "auto";
        id: string;
        left: null | number;
        minimizable: boolean;
        popOut: boolean;
        resizable: boolean;
        scale: null | number;
        scrollY: string[];
        sheetConfig: boolean;
        submitOnChange: boolean;
        submitOnClose: boolean;
        tabs: {
            contentSelector: string;
            group: string;
            initial: string;
            navSelector: string;
        }[];
        template: null | string;
        title: string;
        top: null | number;
        viewPermission: 0 | 1 | 2 | 3;
        width: number;
    }, OmitByValue<{
        classes: string[];
        dragDrop: ({
            dragSelector: string;
            dropSelector: string;
        } | {
            dragSelector: string;
            dropSelector?: undefined;
        })[];
        scrollY: string[];
        width: number;
    }, never>>
  • Returns InsertKeys<{
        baseApplication: null | string;
        classes: string[];
        closeOnSubmit: boolean;
        dragDrop: ({
            dragSelector: string;
            dropSelector: string;
        } | {
            dragSelector: string;
            dropSelector?: undefined;
        })[];
        editable: boolean;
        filters: Omit<SearchFilterConfiguration, "callback">[];
        height: null | number | "auto";
        id: string;
        left: null | number;
        minimizable: boolean;
        popOut: boolean;
        resizable: boolean;
        scale: null | number;
        scrollY: string[];
        sheetConfig: boolean;
        submitOnChange: boolean;
        submitOnClose: boolean;
        tabs: {
            contentSelector: string;
            group: string;
            initial: string;
            navSelector: string;
        }[];
        template: null | string;
        title: string;
        top: null | number;
        viewPermission: 0 | 1 | 2 | 3;
        width: number;
    }, OmitByValue<{
        classes: string[];
        dragDrop: ({
            dragSelector: string;
            dropSelector: string;
        } | {
            dragSelector: string;
            dropSelector?: undefined;
        })[];
        scrollY: string[];
        width: number;
    }, never>>

Methods

  • Internal

    Parameters

    • elem: Element
    • Optional options: {
          animation: undefined | boolean;
          rollData: undefined | object;
      } = {}

      Additional options

      • animation: undefined | boolean
      • rollData: undefined | object

    Returns Promise<void>

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

    Returns Promise<{
        canClassLink: boolean;
        config: config;
        cssClass: string;
        document: ItemPF;
        editable: 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;
    }>

Generated using TypeDoc