Item choice dialog.

Hierarchy

  • FormApplication
    • ItemSelector

Constructors

  • Parameters

    • __namedParameters: {
          actor: any;
          empty: undefined | boolean;
          filter: any;
          items: any;
          selected: undefined | null;
      } = {}
      • actor: any
      • empty: undefined | boolean
      • filter: any
      • items: any
      • selected: undefined | null
    • options: any

    Returns ItemSelector

Properties

empty: boolean
filterFunc: any
items: any
selected: string

Accessors

  • get defaultOptions(): {
        classes: string[];
        closeOnSubmit: boolean;
        height: string;
        resizable: boolean;
        scrollY: string[];
        submitOnChange: boolean;
        submitOnClose: boolean;
    }
  • Returns {
        classes: string[];
        closeOnSubmit: boolean;
        height: string;
        resizable: boolean;
        scrollY: string[];
        submitOnChange: boolean;
        submitOnClose: boolean;
    }

    • classes: string[]
    • closeOnSubmit: boolean
    • height: string
    • resizable: boolean
    • scrollY: string[]
    • submitOnChange: boolean
    • submitOnClose: boolean

Methods

  • Returns {
        empty: boolean;
        items: any;
        selected: string;
    }

    • empty: boolean
    • items: any
    • selected: string
  • Render item selector and wait for it to resolve.

    Parameters

    • options: {
          actor: undefined | Actor;
          empty: undefined | boolean;
          filter: Function;
          items: undefined | Item[];
          selected: undefined | string;
      } = {}

      Options

      • actor: undefined | Actor

        Actor to find items from.

      • empty: undefined | boolean

        Allow empty selection.

      • filter: Function

        Filter function

      • items: undefined | Item[]

        Items list. Used only if actor is undefined.

      • selected: undefined | string

        Already selected item ID.

    • Optional appOptions: object

      Application options

    • Optional renderOptions: object

      Render options

    Returns Promise<null | string>

    • Item ID or null if cancelled.

Generated using TypeDoc