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

    Option selector based on a grid.

    Hierarchy

    • HandlebarsApplication<this> & ApplicationV2<
          RenderContext,
          Configuration,
          RenderOptions,
          this,
      >
      • GridPicker
    Index

    Constructors

    • Applications are constructed by providing an object of configuration options.

      Parameters

      • Optionaloptions: {}

        Options used to configure the Application instance (default: {})

      Returns GridPicker

    Properties

    DEFAULT_OPTIONS: {
        actions: {
            select: (
                ...this: any,
                event: PointerEvent,
                target: HTMLElement,
            ) => void;
        };
        classes: string[];
        tag: string;
        window: { frame: boolean };
    } = ...
    PARTS: { grid: { template: string } } = ...

    Accessors

    • get promise(): Promise<any>

      Returns Promise<any>

    Methods

    • Cancel if clicked off the app

      Parameters

      • event: PointerEvent

      Returns void

    • Actions performed after closing the Application. Post-close steps are not awaited by the close process.

      Parameters

      • options: any

        Provided render options

      Returns void

    • Parameters

      • context: any
      • options: any

      Returns Promise<void>

    • Actions performed after any render of the Application.

      Parameters

      • context: any

        Prepared context data

      • options: any

        Provided render options

      Returns void

    • Prepare application rendering context data for a given render request.

      Parameters

      • options: any

        Options which configure application rendering behavior

      Returns {
          cells: { height: any; width: any };
          choices: any;
          grid: { columns: any; rows: any };
          selected: any;
          title: any;
      }

      Context data for the render operation

    • Select

      Parameters

      • ...this: any
      • event: PointerEvent
      • target: HTMLElement

      Returns void

    • Initialize, render & wait for picker to resolve

      Parameters

      • options: {} = {}
      • OptionalrenderOpts: object = {}

        Render options

      Returns Promise<undefined | string>

      • Choice