WorkspaceProtocolHandler.promptConfirmation method
WorkspaceProtocolHandler › promptConfirmation
Unofficial
Open a confirmation dialog and resolve with the user's choice.Signature:
promptConfirmation(fragmentEl: DocumentFragment, action: string): Promise<'once' | 'trust' | false>Parameters:
| Parameter | Type | Description |
|---|---|---|
| fragmentEl | DocumentFragment | The dialog content. |
| action | string | The action name. |
Returns: Promise<'once' | 'trust' | false> — A promise that resolves with 'once', 'trust', or false if the user cancelled.