We know that the LoadingController in ionic3 is a fullscreen loading. Is it posiible user the LoadingController for partial loading like loading only a list in the screen of a card in the screen?
ion-spinner { position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; margin: auto; z-index: 9; }
<ion-content> <ion-spinner></ion-spinner> </ion-content>
Yes, You can. You need to create a custom loader for that.
Here is an example of the doc
presentLoadingCustom() {
const loading = this.loadingCtrl.create({
spinner: 'hide',
content: `
<div class="custom-spinner-container">
<div class="custom-spinner-box"></div>
</div>`,
duration: 5000
});
loading.onDidDismiss(() => {
console.log('Dismissed loading');
});
loading.present();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.