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

    Stack splitting dialog

    const result = await pf1.applications.SplitStack.wait({ title: "My Stuff", initial: 50, total: 100 });
    if (!result) throw new Error("Fsck!");
    const [keep,split] = result;
    console.log(`I keep ${keep} and you get ${split}`);

    Hierarchy

    • DialogV2
      • SplitStack
    Index

    Constructors

    Properties

    Methods

    Constructors

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

      Parameters

      • Optionaloptions: {}

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

      Returns SplitStack

    Properties

    _controller: any

    Methods

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

      Parameters

      • options: any

        Provided render options

      Returns void

    • Wait for user interaction to finish.

      Parameters

      • options: {
            css?: string[];
            initial: number;
            step?: number;
            title?: string;
            total: number;
        } = {}

        Options

        • Optionalcss?: string[]

          Optional CSS selectors to add to the dialog.

        • initial: number

          Initial value

        • Optionalstep?: number

          Value stepping.

        • Optionaltitle?: string

          Dialog title

        • total: number

          Total value to split.

      • dialogOptions: object = {}

        Additional options to pass to DialogV2

      Returns Promise<null | number[]>

      • Number tuple, to keep and to split values. Null if cancelled.