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

  • any
    • SplitStack

Constructors

Methods

Constructors

  • Returns SplitStack

Methods

  • Wait for user interaction to finish.

    Parameters

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

      Options

      • css: undefined | string[]

        Optional CSS selectors to add to the dialog.

      • initial: number

        Initial value

      • step: undefined | number

        Value stepping.

      • title: undefined | string

        Dialog title

      • total: number

        Total value to split.

    • dialogOptions: object = {}

      Additional options to pass to DialogV2

    Returns null | number[]

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