Stack splitting dialog

Example

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

  • Dialog
    • SplitStack

Constructors

Methods

Constructors

  • Parameters

    • data: Data

      An object of dialog data which configures how the modal window is rendered

    • Optional options: Partial<DialogOptions>

      Dialog rendering options, see Application

    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.

    • renderOptions: object = {}

      Render options to pass to Dialog

    Returns null | number[]

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

Generated using TypeDoc