Skip to content

PKUI.MESSAGE.Confirm.hide

kerrishotts edited this page Nov 15, 2012 · 1 revision

(part of PKUI.MESSAGE) | (method of PKUI.MESSAGE.Confirm )

Return Type: void

Parameters: none

Calls PKUI.MESSAGE.Confirm.dismiss with -1 as a parameter.

Example:

var mbox = new PKUI.MESSAGE.Confirm ( 
             "Confirmation",
             "Are you sure you want to delete the file?",
             "Delete*|Cancel<",
             function ( buttonIndex )
             {
               if (buttonIndex === 0) { deleteTheFile(); }
             }
);
mbox.show();
PKUTIL.delay (30000, mbox.hide); // hide after 30s

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally