Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Is there any way to add a timer value (10 seconds), same as the duration of the loader to message of ion-loading

$
0
0

@marytee123 wrote:

I am using ionic 4 with Angular 7, to create a loading icon

Code:

async presentLoadingWithOptions(message) {

    const loading = await this.loadingController.create({
        spinner: 'bubbles',
        duration: 10000,
        message: message,
        translucent: true,
        cssClass: 'custom-class custom-loading'
    });
    await loading.present();

    const { role, data } = await loading.onDidDismiss();

  do something();
}

}

I want to pass 10, 9, 8, 7 6, 5 … 1 as a message, to the loader. Is there any possibility to do that?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>