1.2.1 • Published 5 years ago
kutay-dialogs v1.2.1
Functions
function showDialog(content, title, onOkClick, onCancelClick, dialogType)This function shows the dialog with the following parameters
content is a string
title is a string
onOkClick is a function that gets executed when user clicks OK
onCancelClick is a function that gets executed when user clicks cancel
dialogType can be either 1 for success, 2 for fail or 3 for warning
function hideDialog()This function hides the dialog
Example
function okClick() {
console.log("Ok click");
}
function cancelClick() {
console.log("Cancel click");
}
showDialog("Hello", "Correct", okClick, cancelClick, 1);