@@ -137,7 +137,10 @@ export class LoadingTest extends Observable {
137
137
color : '#fff000' ,
138
138
mode : Mode . Determinate
139
139
} ) ;
140
- this . demoProgress ( '#fff000' ) ;
140
+
141
+ setTimeout ( ( ) => {
142
+ this . indicator . hide ( ) ;
143
+ } , 3500 ) ;
141
144
}
142
145
143
146
public showLoaderAnnularDeterminate ( ) {
@@ -147,17 +150,42 @@ export class LoadingTest extends Observable {
147
150
backgroundColor : '#000' ,
148
151
mode : Mode . AnnularDeterminate
149
152
} ) ;
150
- this . demoProgress ( '#38ef7d' ) ;
153
+
154
+ setTimeout ( ( ) => {
155
+ this . indicator . hide ( ) ;
156
+ } , 3500 ) ;
151
157
}
152
158
153
159
public showLoaderDeterminateHorizontalBar ( ) {
160
+ const mode = Mode . DeterminateHorizontalBar ;
161
+ const color = '#FF0099' ;
162
+
154
163
this . indicator . show ( {
155
164
message : 'Determinate Horizontal Bar Mode' ,
156
- color : '#FF0099' ,
165
+ color,
157
166
backgroundColor : '#240b36' ,
158
- mode : Mode . DeterminateHorizontalBar
167
+ mode
159
168
} ) ;
160
- this . demoProgress ( '#FF0099' ) ;
169
+
170
+ setTimeout ( ( ) => {
171
+ this . indicator . show ( { progress : 0.15 , color, mode } ) ;
172
+ } , 500 ) ;
173
+ setTimeout ( ( ) => {
174
+ this . indicator . show ( { progress : 0.35 , color, mode } ) ;
175
+ } , 1500 ) ;
176
+ setTimeout ( ( ) => {
177
+ this . indicator . show ( { progress : 0.65 , color, mode } ) ;
178
+ } , 2500 ) ;
179
+ setTimeout ( ( ) => {
180
+ this . indicator . show ( { progress : 0.85 , color, mode } ) ;
181
+ } , 3000 ) ;
182
+ setTimeout ( ( ) => {
183
+ this . indicator . show ( { progress : 0.99 , color, mode } ) ;
184
+ } , 3750 ) ;
185
+ setTimeout ( ( ) => {
186
+ this . indicator . show ( { progress : 1 , color, mode } ) ;
187
+ this . indicator . hide ( ) ;
188
+ } , 4500 ) ;
161
189
}
162
190
163
191
public showLoaderModeText ( ) {
0 commit comments