Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit 6d65a46

Browse files
committed
small demo change
1 parent 497a562 commit 6d65a46

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

demo/app/main-view-model.ts

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ export class LoadingTest extends Observable {
137137
color: '#fff000',
138138
mode: Mode.Determinate
139139
});
140-
this.demoProgress('#fff000');
140+
141+
setTimeout(() => {
142+
this.indicator.hide();
143+
}, 3500);
141144
}
142145

143146
public showLoaderAnnularDeterminate() {
@@ -147,17 +150,42 @@ export class LoadingTest extends Observable {
147150
backgroundColor: '#000',
148151
mode: Mode.AnnularDeterminate
149152
});
150-
this.demoProgress('#38ef7d');
153+
154+
setTimeout(() => {
155+
this.indicator.hide();
156+
}, 3500);
151157
}
152158

153159
public showLoaderDeterminateHorizontalBar() {
160+
const mode = Mode.DeterminateHorizontalBar;
161+
const color = '#FF0099';
162+
154163
this.indicator.show({
155164
message: 'Determinate Horizontal Bar Mode',
156-
color: '#FF0099',
165+
color,
157166
backgroundColor: '#240b36',
158-
mode: Mode.DeterminateHorizontalBar
167+
mode
159168
});
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);
161189
}
162190

163191
public showLoaderModeText() {

0 commit comments

Comments
 (0)