A specialized form used to select material types.

Hierarchy

  • any
    • MaterialSelector

Constructors

Properties

attributes: undefined | { addons: any; base: any; normal: any }

The attributes of the material selector.

DEFAULT_OPTIONS: {
    classes: string[];
    form: {
        closeOnSubmit: boolean;
        handler: Object;
        submitOnChange: boolean;
        submitOnClose: boolean;
    };
    position: { width: number };
    sheetConfig: boolean;
    tag: string;
    window: { icon: string; minimizable: boolean; resizable: boolean };
} = ...
PARTS: {
    footer: { template: string };
    form: { scrollable: string[]; template: string };
} = ...

Accessors

Methods

  • Internal

    The event handler for changes to form input elements

    Parameters

    • formConfig: ApplicationFormConfiguration

      The configuration of the form being changed

    • event: Event

      The triggering event

    Returns void

  • Protected

    Attach event listeners to the rendered application form.

    Parameters

    • context: ApplicationRenderContext

      Prepared context data

    • options: RenderOptions

      Provided render options

    Returns void

  • Returns { addons: { key: string; name: string }[]; basics: {}; materials: {} }

  • Protected

    Parameters

    • partId: any

    Returns Promise<
        | undefined
        | {
            buttons?: undefined;
            choices: {
                addons: { key: string; name: string }[];
                basics: {};
                materials: {};
            };
            cssClass: string;
            hasBase: boolean;
            materialAddons: {};
            materials: object;
        }
        | {
            buttons?: undefined;
            choices?: undefined;
            cssClass?: undefined;
            hasBase?: undefined;
            materialAddons?: undefined;
            materials?: undefined;
        }
        | {
            buttons: { icon: string; label: string; type: string }[];
            choices?: undefined;
            cssClass?: undefined;
            hasBase?: undefined;
            materialAddons?: undefined;
            materials?: undefined;
        },
    >