Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/dialog/index.ts>DialogOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface DialogOptions
import { type DialogOptions } from "https://deno.land/x/ayonli_jsext@v0.9.72/dialog/index.ts";

Options for dialog functions such as alert, confirm and prompt.

Properties

optional
gui: boolean

By default, a GUI dialog is displayed in the browser, and text mode is used in the terminal. Set this option to true will force the program to always display a GUI dialog, even in the terminal.

When in the terminal, the GUI dialog is rendered with the OS's native dialog. If the dialog is failed to display, an error will be thrown.

This option is only functional in Windows, macOS and Linux, it is ignored in other platforms and the browser.