当前位置:网站首页>Create a dojo progress bar programmatically: Dojo ProgressBar
Create a dojo progress bar programmatically: Dojo ProgressBar
2022-07-03 12:51:00 【superfreak】
<!DOCTYPE html>
<html >
<head>
<link rel="stylesheet" href="claro.css">
<script>dojoConfig = {parseOnLoad: true}</script>
<script src='dojo/dojo.js'></script>
<script>
require(["dijit/ProgressBar", "dojo/_base/window", "dojo/domReady!"], function(ProgressBar, win){
var i = 0;
var myProgressBar = new ProgressBar({
style: "width: 300px",
maximum: 100,
value:36,
},document.getElementById("div2"));
myProgressBar.startup();
/*code like these
var theBar = new ProgressBar({
id: "testBar",
width: 400,
maximum: 256,
duration: 2000,
dir: dir,
report: function(percent){
return string.substitute("${0} out of ${1} max chars", [this.get('value'), this.maximum]);
}
}, dom.byId("testBar"));
*/
/*var myProgressBar = new ProgressBar({
style: "width: 300px",
maximum: 100,
value:36,
}).placeAt(win.body()).startup(); */
/*setInterval(function(){
myProgressBar.set("value", i++ % 100);
}, 100);*/
});
</script>
</head>
<body class="claro">
<div id="div1"> div1</div>
<div id="div2">div2 </div>
<div id="div3"> div3</div>
</body>
</html>边栏推荐
- Drop down refresh conflicts with recyclerview sliding (swiperefreshlayout conflicts with recyclerview sliding)
- 初入职场,如何快速脱颖而出?
- Exploration of sqoop1.4.4 native incremental import feature
- Glide 4.6.1 API initial
- LeetCode 0556. Next bigger element III - end of step 4
- Swift Error Handling
- Sword finger offer09 Implementing queues with two stacks
- 社交社区论坛APP超高颜值UI界面
- The upward and downward transformation of polymorphism
- 剑指Offer04. 二维数组中的查找【中等】
猜你喜欢

并网-低电压穿越与孤岛并存分析

Analysis of a music player Login Protocol

Sword finger offer10- I. Fibonacci sequence

Low code platform international multilingual (I18N) technical solution

The latest version of lottery blind box operation version

Public and private account sending prompt information (user microservice -- message microservice)

自抗扰控制器七-二阶 LADRC-PLL 结构设计

低代码平台国际化多语言(i18n)技术方案

Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?

剑指Offer07. 重建二叉树
随机推荐
十条职场规则
Do you feel like you've learned something and forgotten it?
Sword finger offer09 Implementing queues with two stacks
剑指Offer05. 替换空格
Apache Mina Development Manual
Simple use and precautions of kotlin's array array and set list
context. Getexternalfilesdir() is compared with the returned path
Sqoop1.4.4原生增量导入特性探秘
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
Write a simple nodejs script
Kotlin notes - popular knowledge points asterisk (*)
elastic_ L01_ summary
Four problems and isolation level of MySQL concurrency
Apache Mina开发手册
4. 无线体内纳米网:电磁传播模型和传感器部署要点
Analysis of a music player Login Protocol
OpenStack节点地址改变
[ManageEngine] the role of IP address scanning
Enter the length of three sides of the triangle through the user, and calculate the area of the triangle, where the length is a real number
Day 1 of kotlin learning: simple built-in types of kotlin