forked from syncfusion/ej2-javascript-ui-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogressbar.ts
112 lines (111 loc) · 2.82 KB
/
progressbar.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import { ProgressBar} from '../src/index';
let uploadProgress: ProgressBar = new ProgressBar({
type: 'Linear',
height: '60',
value: 100,
width:'600',
progressThickness:10,
trackThickness:10,
animation: {
enable: true,
duration: 2000,
delay: 0,
},
});
uploadProgress.appendTo('#lineardeterminate');
let successProgress: ProgressBar = new ProgressBar({
type: 'Linear',
isIndeterminate: true,
value: 20,
width:'600',
progressThickness:10,
trackThickness:10,
animation: {
enable: true,
duration: 2000,
delay: 0,
},
});
successProgress.appendTo('#linearindeterminate');
let warningsProgress: ProgressBar = new ProgressBar({
type: 'Linear',
height: '60',
value: 40,
secondaryProgress: 60,
width:'600',
progressThickness:10,
trackThickness:10,
animation: {
enable: true,
duration: 2000,
delay: 0,
},
});
warningsProgress.appendTo('#linearbuffer');
let errorProgress: ProgressBar = new ProgressBar({
type: 'Linear',
height: '60',
segmentCount: 8,
value: 100,
width:'600',
progressThickness:10,
trackThickness:10,
animation: {
enable: true,
duration: 2000,
delay: 0,
},
});
errorProgress.appendTo('#linearsegment');
let circluar: ProgressBar = new ProgressBar({
type: 'Circular',
value: 100,
width: '160px',
height: '160px',
animation: {
enable: true,
duration: 2000,
delay: 0,
}
});
circluar.appendTo('#circular-container');
let rtl: ProgressBar = new ProgressBar({
type: 'Circular',
value: 70,
secondaryProgress: 90,
width: '160px',
height: '160px',
animation: {
enable: true,
duration: 2000,
delay: 0,
},
});
rtl.appendTo('#rtl-container');
let track: ProgressBar = new ProgressBar({
type: 'Circular',
value: 100,
segmentCount: 4,
width: '160px',
height: '160px',
animation: {
enable: true,
duration: 2000,
delay: 0,
},
});
track.appendTo('#track-container');
let rounded: ProgressBar = new ProgressBar({
type: 'Circular',
value: 20,
width: '160px',
height: '160px',
cornerRadius: 'Round',
isIndeterminate: true,
animation: {
enable: true,
duration: 2000,
delay: 0,
},
});
rounded.appendTo('#rounded-container');