cordova-plugin-number-dialog
v0.2.2
Published
PhoneGap numeric text/password dialog plugin for Android and iOS
Downloads
6
Maintainers
Readme
PinDialog
PhoneGap numeric text/password dialog plugin for Android and iOS. Forked from https://github.com/apache/cordova-plugin-dialogs.git
Fork of https://github.com/Paldom/PinDialog with text/password option
Usage:
// Show pin dialog with password field
window.plugins.numberDialog.prompt("message", callback, "title", ["OK","Cancel"]);
// Show pin dialog with text field
window.plugins.numberDialog.promptClear("message", callback, "title", ["OK","Cancel"]);
Callback:
function callback(results)
{
if(results.buttonIndex == 1)
{
// OK clicked, show input value
alert(results.input1);
}
if(results.buttonIndex == 2)
{
// Cancel clicked
alert("Cancel");
}
};