diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-09-15 09:32:35 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-09-15 09:32:35 -0400 |
| commit | 606d3b95e941f48c8963d3996920472145da1200 (patch) | |
| tree | 1a966266ada12285a4e2082607da844d52d900bf /plugins/hu.dpal.phonegap.plugins.PinDialog/www/pin.js | |
| parent | 566510313bd07eeb64dcafdc85a0f8e08e528c64 (diff) | |
Added pindialog plugin
Diffstat (limited to 'plugins/hu.dpal.phonegap.plugins.PinDialog/www/pin.js')
| -rw-r--r-- | plugins/hu.dpal.phonegap.plugins.PinDialog/www/pin.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/hu.dpal.phonegap.plugins.PinDialog/www/pin.js b/plugins/hu.dpal.phonegap.plugins.PinDialog/www/pin.js new file mode 100644 index 00000000..0633748b --- /dev/null +++ b/plugins/hu.dpal.phonegap.plugins.PinDialog/www/pin.js @@ -0,0 +1,13 @@ +var exec = require('cordova/exec'); + + +module.exports = { + + prompt: function(message, resultCallback, title, buttonLabels) { + var _message = (message || "Message"); + var _title = (title || "Title"); + var _buttonLabels = (buttonLabels || ["OK","Cancel"]); + cordova.exec(resultCallback, null, "PinDialog", "prompt", [_message, _title, _buttonLabels]); + } + +};
\ No newline at end of file |
