readme updated

This commit is contained in:
Vladimir Enchev
2014-06-12 10:48:43 +03:00
parent 4028cf4881
commit ef7c3ce677

View File

@@ -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);
```