From 0a2a4cdf707ee559729f0dc73faf13fccb62e31e Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 20 Sep 2025 23:33:58 +0000 Subject: [PATCH] Add dialog.js --- dialog.js.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dialog.js.md diff --git a/dialog.js.md b/dialog.js.md new file mode 100644 index 0000000..4afb107 --- /dev/null +++ b/dialog.js.md @@ -0,0 +1,17 @@ +```javascript +import { dialog, factory, UserDialog } from './dialog.js'; +``` + +## dialog.TYPE(message, ?title, ?actions, ?options) → Promise + +The `dialog` class is a proxy around `factory.showDialog` that saves a few characters. The type can be any string, and styling can be applied using the `-style-TYPE` class. + +## factory.showDialog(type, message, title, actions, options) → Promise + +Create and show a new dialog. The type can be any string, and styling can be applied using the `-style-TYPE` class. + +## class UserDialog + +### constructor(style, title, message, actions, options) + +### show() → Promise \ No newline at end of file