File
Constructor
constructor(popoverCtrl: PopoverController)
|
|
Parameters :
Name |
Type |
Optional |
popoverCtrl |
PopoverController
|
No
|
|
Methods
closePopover
|
closePopover()
|
|
|
sbPopoverHeading
|
Type : string
|
Default value : ''
|
|
sbPopoverMessage
|
Type : string
|
Default value : ''
|
|
import { Component } from '@angular/core';
import { PopoverController } from '@ionic/angular';
@Component({
selector: 'sb-no-network-popup',
templateUrl: 'sb-no-network-popup.component.html'
})
export class SbNoNetworkPopupComponent {
sbPopoverHeading = '';
sbPopoverMessage = '';
constructor(private popoverCtrl: PopoverController) {
}
closePopover() {
this.popoverCtrl.dismiss();
}
}
<ion-content class="no-net-popup">
<ion-grid class="ion-padding">
<ion-row>
<ion-col class="ion-no-padding" size="1">
<img src="assets/imgs/ic_offline_white_sm.png" alt="offline-image">
</ion-col>
<ion-col class="ion-no-padding" size="10">
<label class="no-net-heading">{{sbPopoverHeading}}</label>
</ion-col>
<ion-col class="ion-no-padding" size="1">
<ion-icon class="no-net-close-btn" name="close" (click)="closePopover()"></ion-icon>
</ion-col>
</ion-row>
<ion-row *ngIf="sbPopoverMessage?.length">
<ion-col class="ion-no-padding" offset="1" size="10">
<div class="no-net-message">{{sbPopoverMessage}}</div>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
Legend
Html element with directive