ProgressBar sample - basic
This sample shows how to declare and customize a progress bar.
diff --git a/samples/ProgressBar-handler.html b/samples/ProgressBar-handler.html index 35f1335..a1b1d5d 100644 --- a/samples/ProgressBar-handler.html +++ b/samples/ProgressBar-handler.html @@ -24,8 +24,6 @@ "delite/theme!delite/themes/{{theme}}/global.css", // page level CSS "requirejs-domready/domReady!" ], function (register) { - register.parse(); - var label = document.getElementById("lb"); var progressBar = document.getElementById("pb1"); var loadBtn = document.getElementById("loadBtn"); @@ -63,6 +61,7 @@ }; label.innerHTML = "Value: indeterminate"; + register.deliver(); progressBar.observe(updateLabel); // update label everytime widget changes document.body.style.display = ""; diff --git a/samples/ProgressBar-messages.html b/samples/ProgressBar-messages.html index 129b010..bf9be5d 100644 --- a/samples/ProgressBar-messages.html +++ b/samples/ProgressBar-messages.html @@ -19,13 +19,10 @@ + + + + + + + +