Changes for page Confirmation Box

Last modified by Raphaƫl Jakse on 2023/01/19

From version 1.1
edited by Jerome
on 2009/10/09
Change comment: There is no comment for this version
To version 2.1
edited by Jerome
on 2009/10/09
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -21,12 +21,22 @@
21 21   onNo: function() {
22 22   alert("Oh no :(");
23 23   }
24 -}
24 +};
25 25  {{/code}}
26 26  
27 27  : internationParameters
28 -; Object that defines the different text elements displayed with-in the confirmation box.
28 +; Object that defines the different text elements displayed with-in the confirmation box. Three variables are available for customization : **confirmationText**, the message to confirm (default value for the English language is //Are you sure ?//), **yesButtonText** the "yes" button text (or confirm button), **noButtonText** the "no" button text (or cancel button).
29 29  
30 +Example :
31 +
32 +{{code}}
33 +var myInteractionParamters = {
34 + confirmationText: "Are you sure you want this wiki to engage the self-destruction process ?",
35 + yesButtonText: "Yes, please do that",
36 + noButtonText: "No thank you"
37 +};
38 +{{/code}}
39 +
30 30  == Source Code (for tag xwiki-web-2.0) ==
31 31  
32 32  {{remotecode language="javascript" source="http://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-2.0/standard/src/main/webapp/resources/uicomponents/widgets/confirmationBox.js" /}}

Get Connected