You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2013/05/03 19:53:43 UTC
docs commit: [CB-3022] add default textbox value for
notification.prompt
Updated Branches:
refs/heads/master ddad6cfd9 -> 419000694
[CB-3022] add default textbox value for notification.prompt
- document adding default textbox value parameter for notification.prompt
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/41900069
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/41900069
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/41900069
Branch: refs/heads/master
Commit: 41900069482accc17f7adc73697b046796ce7e02
Parents: ddad6cf
Author: James Jong <wj...@gmail.com>
Authored: Fri May 3 13:51:12 2013 -0400
Committer: James Jong <wj...@gmail.com>
Committed: Fri May 3 13:51:12 2013 -0400
----------------------------------------------------------------------
.../cordova/notification/notification.prompt.md | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/41900069/docs/en/edge/cordova/notification/notification.prompt.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/notification/notification.prompt.md b/docs/en/edge/cordova/notification/notification.prompt.md
index 26192b3..11366b5 100644
--- a/docs/en/edge/cordova/notification/notification.prompt.md
+++ b/docs/en/edge/cordova/notification/notification.prompt.md
@@ -22,12 +22,13 @@ notification.prompt
Shows a customizable prompt dialog box.
- navigator.notification.prompt(message, promptCallback, [title], [buttonLabels])
+ navigator.notification.prompt(message, promptCallback, [title], [buttonLabels], [defaultText])
- __message:__ Dialog message (`String`)
- __promptCallback:__ - Callback to invoke when a button is pressed (`Function`)
- __title:__ Dialog title (`String`) (Optional, Default: "Prompt")
- __buttonLabels:__ Array of strings for the button labels (`Array`) (Optional, Default: ["OK","Cancel"])
+- __defaultText:__ Default textbox input value (`String`) (Optional, Default: "Default text")
Description
-----------
@@ -65,7 +66,8 @@ Quick Example
'Please enter your name', // message
onPrompt, // callback to invoke
'Registration', // title
- ['Ok','Exit'] // buttonLabels
+ ['Ok','Exit'], // buttonLabels
+ 'Jane Doe' // defaultText
);
}
@@ -102,7 +104,8 @@ Full Example
'Please enter your name', // message
onPrompt, // callback to invoke
'Registration', // title
- ['Ok','Exit'] // buttonLabels
+ ['Ok','Exit'], // buttonLabels
+ 'Jane Doe' // defaultText
);
}