typescript - How to use ionic v1 plugin in ionic v3? -


i new ionic , typescript. want use this v1 plugin in project in ionic v3. there alternative plugin in ionic v3? how can this?

the same behavior added framework, component called fabbutton. please take @ the docs.

what want achieve can done following code:

<ion-content>   <!-- real floating action button, fixed. not scroll content -->   <ion-fab bottom right>     <button ion-fab mini><ion-icon name="add"></ion-icon></button>     <ion-fab-list>       <button ion-fab><ion-icon name="logo-facebook"></ion-icon></button>       <button ion-fab><ion-icon name="logo-twitter"></ion-icon></button>       <button ion-fab><ion-icon name="logo-vimeo"></ion-icon></button>       <button ion-fab><ion-icon name="logo-googleplus"></ion-icon></button>     </ion-fab-list>   </ion-fab>  </ion-content> 

update

i want make backdrop blur when fab clicked , click on backdrop close fab list

please take @ this working plunker. can see there, can use div overlay, , show , hide using showoverlay property.

this result:

fabbutton demo

component

import { component } '@angular/core'; import { navcontroller } 'ionic-angular';  @component({   selector: 'page-home',   templateurl: 'app/home.page.html' }) export class homepage {    appname = 'ionic demo';   showoverlay = false;    constructor(public navcontroller: navcontroller) { }    closefabbutton(fab: any) {     fab.close();     this.toggleoverlay();   }    toggleoverlay() {     this.showoverlay = !this.showoverlay;   }    optionselected(fab: any) {     fab.close();     this.showoverlay = false;   }  } 

view

<ion-header>   <ion-navbar>     <ion-title>{{ appname }}</ion-title>   </ion-navbar> </ion-header>  <ion-content>    <p>lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>    <div (click)="closefabbutton(fab)" *ngif="showoverlay" style="position: absolute;top:0;left:0;background-color:black; opacity:0.3;height:100%;width:100%;z-index:9;"></div>   <ion-fab #fab  bottom right >    <button (click)="toggleoverlay()" ion-fab>share</button>    <ion-fab-list side="top">      <button (click)="optionselected(fab)" ion-fab>f</button>      <button (click)="optionselected(fab)" ion-fab>t</button>      <button (click)="optionselected(fab)" ion-fab>y</button>    </ion-fab-list>  </ion-fab>  </ion-content> 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -