MCPcopy Create free account
hub / github.com/1j01/98 / showMessageBox_implementation

Function showMessageBox_implementation

programs/jspaint/src/msgbox.js:58–145  ·  view source on GitHub ↗

* @typedef {Object} MessageBoxOptions * @property {string} [title] * @property {string} [message] * @property {string} [messageHTML] * @property {Array<{ label: string, value: string, default?: boolean, action?: () => void }>} [buttons] * @property {"error" | "warning" | "info" | "nuke"} [iconI

({
	title = window.defaultMessageBoxTitle ?? "Alert",
	message,
	messageHTML,
	buttons = [{ label: "OK", value: "ok", default: true }],
	iconID = "warning", // "error", "warning", "info", or "nuke" for deleting files/folders
	windowOptions = {}, // for controlling width, etc.
})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 8

play_chordFunction · 0.85
centerMethod · 0.80
$ButtonMethod · 0.65
closeMethod · 0.65
focusMethod · 0.65
$Function · 0.50
onMethod · 0.45

Tested by

no test coverage detected