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;
}[]

Type declaration

  • _id: Prepared
  • _name: Prepared
  • id: string
attributes: {
    custom: any;
    value: any;
}

The currently stored values for this trait selector

Type declaration

  • custom: any
  • value: any
DEFAULT_OPTIONS: {
    classes: string[];
    form: {
        closeOnSubmit: boolean;
        handler: ((event, form, formData) => Promise<void>);
        submitOnChange: boolean;
        submitOnClose: boolean;
    };
    position: {
        width: number;
    };
    sheetConfig: boolean;
    tag: string;
    window: {
        minimizable: boolean;
        resizable: boolean;
    };
} = ...

Type declaration

  • classes: string[]
  • form: {
        closeOnSubmit: boolean;
        handler: ((event, form, formData) => Promise<void>);
        submitOnChange: boolean;
        submitOnClose: boolean;
    }
    • closeOnSubmit: boolean
    • handler: ((event, form, formData) => Promise<void>)
        • (event, form, formData): Promise<void>
        • Private

          Update the Actor object with new trait data processed from the form

          Parameters

          • event: SubmitEvent

            The originating form submission event

          • form: HTMLFormElement

            The form element that was submitted

          • formData: FormDataExtended

            Processed data for the submitted form

          Returns Promise<void>

    • submitOnChange: boolean
    • submitOnClose: boolean
  • position: {
        width: number;
    }
    • width: number
  • sheetConfig: boolean
  • tag: string
  • window: {
        minimizable: boolean;
        resizable: boolean;
    }
    • minimizable: boolean
    • resizable: boolean
PARTS: {
    footer: {
        template: string;
    };
    form: {
        scrollable: string[];
        template: string;
    };
} = ...

Type declaration

  • footer: {
        template: string;
    }
    • template: string
  • form: {
        scrollable: string[];
        template: string;
    }
    • scrollable: string[]
    • template: string
SEARCH_INCLUDE_ID: boolean = true

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

    Inherit Doc

    Async

  • 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

  • Private

    Update the Actor object with new trait data processed from the form

    Parameters

    • event: SubmitEvent

      The originating form submission event

    • form: HTMLFormElement

      The form element that was submitted

    • formData: FormDataExtended

      Processed data for the submitted form

    Returns Promise<void>

Generated using TypeDoc