Class: dialogger

dialogger

$.dialogger

Methods

(static) alert(msg, btns)

Creates an alert message.
Parameters:
Name Type Description
msg String The message to output.
btns Object An object of buttons where the key equals the button text and the value equals a function to execute on click. Defaults to an okay button if left blank. A button click will close the alert by default, so no need to call the close method unless you have stopped event propagation. Sample: $.dialogger.alert("Hello", {"Greet": function () { console.log("Hi"); }, "Okay": null}); //Notice that the "Okay" value is set to null since the close logic is baked into every button click

(static) close()

Closes the dialog.

(static) isOpen()

Returns a boolean determining whether the dialog is open or not.