当前位置:网站首页>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>
边栏推荐
- ORM use of node -serialize
- [network counting] Chapter 3 data link layer (2) flow control and reliable transmission, stop waiting protocol, backward n frame protocol (GBN), selective retransmission protocol (SR)
- Enable SASL authentication for memcached
- [review questions of database principles]
- 【数据挖掘复习题】
- The solution to change the USB flash disk into a space of only 2m
- 自抗扰控制器七-二阶 LADRC-PLL 结构设计
- Drop down refresh conflicts with recyclerview sliding (swiperefreshlayout conflicts with recyclerview sliding)
- [ArcGIS user defined script tool] vector file generates expanded rectangular face elements
- Kotlin notes - popular knowledge points asterisk (*)
猜你喜欢
GaN图腾柱无桥 Boost PFC(单相)七-PFC占空比前馈
ncnn神经网络计算框架在香橙派OrangePi 3 LTS开发板中的使用介绍
剑指Offer05. 替换空格
Analysis of a music player Login Protocol
Drop down refresh conflicts with recyclerview sliding (swiperefreshlayout conflicts with recyclerview sliding)
What is more elegant for flutter to log out and confirm again?
initial、inherit、unset、revert和all的区别
Grid connection - Analysis of low voltage ride through and island coexistence
Analysis of the influence of voltage loop on PFC system performance
The latest version of lottery blind box operation version
随机推荐
Node.js: express + MySQL的使用
[comprehensive question] [Database Principle]
Keep learning swift
Deeply understand the mvcc mechanism of MySQL
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
alright alright alright
Grid connection - Analysis of low voltage ride through and island coexistence
自抗扰控制器七-二阶 LADRC-PLL 结构设计
Quick learning 1.8 front and rear interfaces
studio All flavors must now belong to a named flavor dimension. Learn more
I'm too lazy to write more than one character
Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.
【计网】第三章 数据链路层(2)流量控制与可靠传输、停止等待协议、后退N帧协议(GBN)、选择重传协议(SR)
【習題七】【數據庫原理】
剑指Offer10- I. 斐波那契数列
[problem exploration and solution of one or more filters or listeners failing to start]
Swift5.7 extend some to generic parameters
Two solutions of leetcode101 symmetric binary tree (recursion and iteration)
Swift5.7 扩展 some 到泛型参数
T430 toss and install OS majave 10.14