If I am not mistaken, the LoadingControl is being developed. So I use the Loading instead.
My question is how we can change the text of this control in the run-time?
for example, at the beginning of the download progress is “please wait …”, when we finish the download, the text will be “successfully downloaded” 1 second before dismissing.
Thanks
@hieuluongdevoteam Nice point to highlight on the forum.
For exactly the same thing I also looking for… I’m also not able to make it so far.
Anyone already did this?? Shed some light on this.
Thanks.
Up…anyone knows how to achieve that?
Actually pretty easy:
let loader = this.loadingCtrl.create({
content: "Please wait...",
duration: 3000
});
loader.present();
loader.setContent("Another One Bites the Dust");
2 Likes
let loader = this.loadingCtrl.create({
content: "Authenticating...",
duration: 5000
});
loader.present();
setTimeout(() => { // here may goes your
loader.setContent("Fetching your data..");
},2000);
This is just a sample to showcase change of text on loading
.
You can change content
inside your method using other technique, too.
Thanks.
2 Likes