Function: askText()
askText(
parent,__namedParameters):Promise<string|null>
Defined in: src/ui/ask/index.ts:126
Ask the user for text in a dialog shown in parent, resolving with what they typed when they agree (or press Enter),
or null if they cancel.
Parameters
parent
Node
__namedParameters
Returns
Promise<string | null>
Example
const name = await askText(this.renderRoot, { heading: "Add to presets", label: "Name", value: "Ink",
confirm: "Save", cancel: "Cancel" });