Skip to content

@vttforge/core / promptFields

Function: promptFields()

promptFields<Fields>(fields, options?): Promise<PromptResult<Fields> | null>

Show the fields in a dialog and resolve to their values, or null when the dialog is dismissed.

Numbers come back as numbers and checkboxes as booleans; Foundry's form reader casts them from the input type. The first field gets the focus.

Type Parameters

Fields

Fields extends readonly PromptField[]

Parameters

fields

Fields

options?

PromptFieldsOptions = {}

Returns

Promise<PromptResult<Fields> | null>

MIT licensed.