Interface Options<I>

Type Parameters

Hierarchy

  • Options

Properties

body?: string | Element

The body of the dialog. Does not support HTML but supports DOM elements.

Default

""
builder?: (() => Promise<string | Element>)

Type declaration

    • (): Promise<string | Element>
    • Async function that returns the body of the dialog. body property is ignored if this is set. While this function is running, the dialog shows a loading indicator.

      Returns Promise<string | Element>

      The body of the dialog.

cancelButtonHTML?: string

The HTML content of the dialog.

Default

"Cancel"
confirmButtonHTML?: string

The HTML content of the dialog.

Default

"OK"
input: I

The input type of the dialog.

inputOptions?: Inputs[I][1]

The options of the input. It is required for these types:

  • select
  • checkbox
  • radio
reverseButtons?: boolean

Whether to reverse the buttons.

Default

false
title?: string

The HTML title of the dialog.

Default

""
value?: Inputs[I][0]

The default value of the input.

Generated using TypeDoc