From ef7c3ce6770ed53d89b587c3f4bd36b01763b791 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Thu, 12 Jun 2014 10:48:43 +0300 Subject: [PATCH] readme updated --- ui/dialogs/Readme.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/dialogs/Readme.md b/ui/dialogs/Readme.md index 9b05d7081..51bcf9828 100644 --- a/ui/dialogs/Readme.md +++ b/ui/dialogs/Readme.md @@ -51,9 +51,13 @@ Custom dialogs: var dialogs = require("ui/dialogs"); /// Splash - var d = new dialogs.Dialog(); - d.title = "Loading..." + var d = new dialogs.Dialog("Loading..."); d.show(); - setTimeout(function(){ d.hide(); }, 2000); + + //or cancelable + var d = new dialogs.Dialog("Loading...", + function(r){ dialogs.alert("You just canceled loading!"); }, { cancelButtonText: "Cancel" }); + d.show(); + setTimeout(function(){ d.hide(); }, 10000); ``` \ No newline at end of file