Interface: PromptOptions
Defined in: packages/sdk/src/ui-service.ts:113
Options for UiService.prompt — a host-rendered single-line text input dialog. Always dismissible (Escape and backdrop-click both resolve to null, i.e. cancelled).
Properties
title
ts
title: string;Defined in: packages/sdk/src/ui-service.ts:115
The dialog's heading.
label?
ts
optional label?: string;Defined in: packages/sdk/src/ui-service.ts:117
Optional label shown above the input.
initialValue?
ts
optional initialValue?: string;Defined in: packages/sdk/src/ui-service.ts:119
Pre-fills the input (and is selected for easy replacement).
placeholder?
ts
optional placeholder?: string;Defined in: packages/sdk/src/ui-service.ts:121
Placeholder shown when the input is empty.
confirmLabel?
ts
optional confirmLabel?: string;Defined in: packages/sdk/src/ui-service.ts:123
Label for the confirm button. Default "OK".
cancelLabel?
ts
optional cancelLabel?: string;Defined in: packages/sdk/src/ui-service.ts:125
Label for the cancel button. Default "Cancel".