当前位置:网站首页>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>边栏推荐
- Sword finger offer03 Repeated numbers in the array [simple]
- 双链笔记·思源笔记综合评测:优点、缺点、评价
- Alibaba is bigger than sending SMS (user microservice - message microservice)
- Two solutions of leetcode101 symmetric binary tree (recursion and iteration)
- Detailed explanation of the most complete constraintlayout in history
- Gan totem column bridgeless boost PFC (single phase) seven PFC duty cycle feedforward
- Kung Fu pays off, and learning is done
- [combinatorics] permutation and combination (the combination number of multiple sets | the repetition of all elements is greater than the combination number | the derivation of the combination number
- It feels great to know you learned something, isn‘t it?
- Apache Mina开发手册
猜你喜欢

Analysis of a music player Login Protocol

GaN图腾柱无桥 Boost PFC(单相)七-PFC占空比前馈

The latest version of blind box mall thinkphp+uniapp

剑指Offer07. 重建二叉树

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

Detailed explanation of the most complete constraintlayout in history

Grid connection - Analysis of low voltage ride through and island coexistence

Sword finger offer06 Print linked list from end to end

Huffman coding experiment report

Record your vulnhub breakthrough record
随机推荐
4. 无线体内纳米网:电磁传播模型和传感器部署要点
Exploration of sqoop1.4.4 native incremental import feature
Node. Js: use of express + MySQL
studio All flavors must now belong to a named flavor dimension. Learn more
阿里大于发送短信(用户微服务--消息微服务)
Sword finger offer14 the easiest way to cut rope
Low code platform international multilingual (I18N) technical solution
02_ Lock the code, and don't let the "lock" become a worry
【数据挖掘复习题】
Keep learning swift
ORM use of node -serialize
剑指Offer09. 用两个栈实现队列
The upward and downward transformation of polymorphism
社交社区论坛APP超高颜值UI界面
How to get user location in wechat applet?
The solution to change the USB flash disk into a space of only 2m
Kung Fu pays off, and learning is done
Analysis of the influence of voltage loop on PFC system performance
Quickly learn member inner classes and local inner classes
Eureka自我保护