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

x/ayonli_jsext/dialog.ts

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/dialog.ts";

Asynchronous dialog functions for both browsers and terminals.

This includes alert, confirm, prompt and other non-standard dialogs.

Functions

Displays a dialog with a message, and to wait until the user dismisses the dialog.

Displays a dialog with a message, and to wait until the user either confirms or cancels the dialog.

Downloads the file of the given URL to the file system.

Opens the directory picker dialog and selects all its files to open.

Opens the file picker dialog and selects a file to open.

Opens the file picker dialog and selects multiple files to open.

Opens the file picker dialog and pick a directory, this function returns the directory's path or FileSystemDirectoryHandle in the browser.

Opens the file picker dialog and pick a file, this function returns the file's path or a FileSystemFileHandle in the browser.

Opens the file picker dialog and pick multiple files, this function returns the paths or FileSystemFileHandle objects in the browser of the files selected.

Displays a dialog with a progress bar indicating the ongoing state of the fn function, and to wait until the job finishes or the user cancels the dialog.

Displays a dialog with a message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.

Saves a file to the file system.

Interfaces

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

Options for the downloadFile function.

Options for file dialog functions, such as pickFile and openFile.

Options for the pickFile function.

Options for the prompt function.

Options for the saveFile function.