Hierarchy

  • any
    • DamageTypeSelector

Constructors

Properties

customTypes: Set<any>
damage: DamageTypes
types: Set<any>
DEFAULT_OPTIONS: {
    actions: { toggleDamageType: (event: Event) => void };
    classes: string[];
    form: {
        closeOnSubmit: boolean;
        handler: (event: Event, formData: object) => Promise<any>;
    };
    position: { width: number };
    sheetConfig: boolean;
    tag: string;
    window: { minimizable: boolean; resizable: boolean; title: string };
} = ...
PARTS: {
    footer: { template: string };
    form: { scrollable: string[]; template: string };
} = ...

Accessors

Methods

  • Initialize the configuration for this application. Override the default ID to be unique to this entry selector instance based on document and attribute that is being edited.

    Parameters

    • options: ApplicationConfiguration

      The provided configuration options for the Application

    Returns ApplicationConfiguration

    The final configuration values for the application

  • Internal

    Update internal data snapshot on form change

    Parameters

    • ...this: any
    • formConfig: any
    • event: any

    Returns Promise<void>

  • Internal

    Returns Promise<
        {
            buttons: { icon: string; label: string; type: string }[];
            categories: never[];
            customTypes: string;
            modifiers: {
                _id: string;
                enabled: boolean;
                flags?: object;
                id: string;
                name: string;
                namespace: string;
            }[];
            types: Set<any>;
        },
    >