• Choose item from actor.

    This is simplified interface to pf1.applications.ItemSelector

    Parameters

    • options: {
          actor: undefined | Actor;
          appOptions: undefined | object;
          empty: undefined | boolean;
          filter: undefined | Function;
          items: undefined | Item[];
          renderOptions: undefined | object;
          subType: undefined | string;
          title: undefined | string;
          type: undefined | string;
      } = {}

      Options

      • actor: undefined | Actor

        Actor from which to get items from.

      • appOptions: undefined | object

        Application options

      • empty: undefined | boolean

        Allow empty selection.

      • filter: undefined | Function

        Filtering callback function.

      • items: undefined | Item[]

        Item list to get item from. Used only if actor is undefined.

      • renderOptions: undefined | object

        Render options

      • subType: undefined | string

        Basic filter for item subtype.

      • title: undefined | string

        Dialog title

      • type: undefined | string

        Basic filter for item type.

    Returns Promise<null | Item>

    • Chosen item or null.

Generated using TypeDoc