Example
Examples of Custom Confirmation
// DialogioButtons registered in window
const CONFIRM_TITLE = "Example Confirmation Title";
const CONFIRM_DESCRIPTION = "**Markdown supports** on description";
const CONFIRM_BUTTONS = DialogioButtons.OkCancel;
// Construct new confirmation class
const Confirmations = new DialogioConfirm();
// Show test confirmation and wait clicks button
const TestConfirmation = await Confirmations.Show(CONFIRM_TITLE, CONFIRM_DESCRIPTION, CONFIRM_BUTTONS);
if (TestConfirmation) {
console.log("Confirmation :>> True");
} else {
console.log("Confirmation :>> False");
}
Last updated