0.2.2 • Published 9 years ago

cordova-plugin-number-dialog v0.2.2

Weekly downloads
14
License
-
Repository
github
Last release
9 years ago

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");
    }
};