1.2.1 • Published 3 years ago

kutay-dialogs v1.2.1

Weekly downloads
17
License
ISC
Repository
github
Last release
3 years ago

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);
1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago