Skip to content

@vttforge/core / PromptFieldsOptions

Interface: PromptFieldsOptions

Properties

content?

readonly optional content?: string

HTML shown above the fields. Run through foundry.utils.cleanHTML first, the same cleaning Foundry gives dialog content; without it (in a test without the helper) the text is shown as text.


icon?

readonly optional icon?: string

OK button icon class.


readonly optional modal?: boolean

Block the rest of the interface until answered.


ok?

readonly optional ok?: string

OK button label, as a localization key or text. Default: Foundry's.


rejectClose?

readonly optional rejectClose?: boolean

Reject instead of resolving null when the dialog is dismissed.


title?

readonly optional title?: string

Window title, as a localization key or text.

MIT licensed.