A specialized form used to select types.

Hierarchy

  • any
    • ActorTraitSelector

Constructors

Properties

_collator: Collator = ...

Collator for sorting

_searchFilter: string = ""

Current search filter

_searchIndex: {
    _id: Prepared;
    _name: Prepared;
    id: string;
}[]
attributes: {
    custom: Set<any>;
    standard: Set<any>;
}

The currently stored values for this trait selector

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

Include language agnostic ID in search.

Accessors

Methods

  • Internal

    The event handler for active keystrokes on the input field.

    Parameters

    • event: Event

      The originating keydown event

    Returns void

  • 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

  • Internal

    Returns Promise<{
        buttons: {
            icon: string;
            label: string;
            type: string;
        }[];
        choices: any;
        custom: any[];
        hasCustom: any;
        hideSearch: boolean;
        search: string;
    }>

  • Split a given value based on the configured separator

    Parameters

    • value: string

      The value to split

    Returns string[]

    The split values, with empty values filtered out