ionic framework - ionic2 How to put an element outside of modal -


i want add element outside of modal using ionic2 image below.

the area surrounded blue border element want add. area surrounded red border custom modal have created.

custom modal.html

<ion-header>     <ion-navbar class="select-header">         <ion-buttons left (click)="close()">             <button ion-button>                 <img class="close" src="assets/images/close.png"/>             </button>         </ion-buttons>         <ion-title>{{title}}</ion-title>     </ion-navbar> </ion-header>  <ion-content class="region-selection">       <div class="select-all">         <img class="selection not-selected" src="assets/images/region/check_none.png"/>         <span>{{title}}</span>     </div>     <div class="select-region">         <ion-row class="regions-row" *ngfor="let row of rowsarray; let last = last" [ngclass]="{ last: last }">             <ion-col *ngfor="let region of regions | slice:(row*3):(row+1)*3">                 <img class="selection not-selected" src="assets/images/region/check_none.png"/>                 <span [innerhtml]="region"></span>             </ion-col>         </ion-row>     </div> </ion-content> 

enter image description here

try placing items inside ion-content , remove ion-header have structure this

<ion-content class="region-selection">      <div class="outside-element">         <!--element outside of modal-->     </div>      <!--this modal header wrapper-->     <div class="modal-header">         <ion-buttons left (click)="close()">             <button ion-button>                 <img class="close" src="assets/images/close.png" />             </button>         </ion-buttons>         <ion-title>{{title}}</ion-title>     </div>      <!--this modal header wrapper-->     <div class="modal-content">         <div class="select-all">             <img class="selection not-selected" src="assets/images/region/check_none.png" />             <span>{{title}}</span>         </div>         <div class="select-region">             <ion-row class="regions-row" *ngfor="let row of rowsarray; let last = last" [ngclass]="{ last: last }">                 <ion-col *ngfor="let region of regions | slice:(row*3):(row+1)*3">                     <img class="selection not-selected" src="assets/images/region/check_none.png" />                     <span [innerhtml]="region"></span>                 </ion-col>             </ion-row>         </div>     </div> </ion-content> 

now can use css style , position elements using classes .outside-element , .modal-header , .modal-content

also, make sure set background-color transparent


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -