interface DialogV2Configuration {
    buttons: DialogV2Button[];
    content?: string | HTMLDivElement;
    modal?: boolean;
    submit?: DialogV2SubmitCallback;
}

Properties

buttons: DialogV2Button[]

Button configuration.

content?: string | HTMLDivElement

The dialog content: a HTML string or a

element. If string, the content is cleaned with foundry.utils.cleanHTML. Otherwise, the content is not cleaned.

modal?: boolean

Modal dialogs prevent interaction with the rest of the UI until they are dismissed or submitted.

A function to invoke when the dialog is submitted. This will not be called if the dialog is dismissed.