Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class ActorTraitSelector

    A specialized form used to select types.

    Hierarchy (View Summary)

    • HandlebarsApplication<this> & DocumentSheetV2<
          any,
          RenderContext<any>,
          Configuration<any>,
          RenderOptions,
          this,
      >
    Index

    Constructors

    Properties

    _collator: Collator = pf1.utils.i18n.sortCollator

    Collator for sorting

    attributes: { custom: Set<any>; standard: Set<any> }

    The currently stored values for this trait selector

    DEFAULT_OPTIONS: {
        actions: { deleteCustom: Object };
        classes: string[];
        form: {
            closeOnSubmit: boolean;
            handler: Object;
            submitOnChange: boolean;
            submitOnClose: boolean;
        };
        id: string;
        position: { width: number };
        sheetConfig: boolean;
        tag: string;
        window: { icon: string; 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

    • Parameters

      • options: any

      Returns any

    • 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

    • Protected

      Parameters

      • partId: any

      Returns Promise<
          | undefined
          | {
              buttons?: undefined;
              choices: any;
              cssClass: string;
              custom: any[];
              editable: boolean;
              hasCustom: any;
              hideSearch: boolean;
              search: string;
          }
          | {
              buttons?: undefined;
              choices?: undefined;
              cssClass?: undefined;
              custom?: undefined;
              editable?: undefined;
              hasCustom?: undefined;
              hideSearch?: undefined;
              search?: undefined;
          }
          | {
              buttons: { icon: string; label: string; type: string }[];
              choices?: undefined;
              cssClass?: undefined;
              custom?: undefined;
              editable?: undefined;
              hasCustom?: undefined;
              hideSearch?: undefined;
              search?: undefined;
          },
      >

    • 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