Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ion-floating-menu
Advanced tools
Material UI-like Floating Action Button and Menu for Ionic applications
Material UI-like Floating Action Button and Menu for Ionic applications
bower install ion-floating-menu
Include the following file imports in your index.html (the example assumes ./lib/ion-floating-menu folder):
<link href="lib/ion-floating-menu/dist/ion-floating-menu.css" rel="stylesheet" type="text/css"/>
...
<script src="lib/ion-floating-menu/dist/ion-floating-menu.js" type="text/javascript"></script>
Add ion-floating-menu
as a module dependency of your angular module.
angular.module('MyApp', ['ionic', 'ion-floating-menu'])
...
Add the ion-floating-button
directive in your template.
Important: put it before and outside the ion-content
node:
<ion-floating-button click="myEvent()" has-footer="false" button-color="#2AC9AA" icon="ion-plus" icon-color="#fff">
</ion-floating-button>
<ion-content>
...
where myEvent()
is trigger when you tap or click.
#2AC9AA
by default)button-color
)ion-plus
by default; note that the icon
class is already defined)#fff
by default)false
by default)true
to center the button
Add the ion-floating-menu
directive in your template.
Important put it before ion-content
.
<ion-floating-menu>
<ion-floating-item icon="ion-camera" click="myEvent()"></ion-floating-item>
<ion-floating-item icon="ion-person" click="myEvent()"></ion-floating-item>
</ion-floating-menu>
where myEvent()
is trigger when you tap or click.
ion-floating-menu:
#2AC9AA
by default)ion-plus
by default; note that the icon
class is already defined)#fff
by default)#2AC9AA
by default)ion-minus
by default; note that the icon
class is already defined)#fff
by default)false
by default)ion-floating-item:
#2AC9AA
by default)button-color
)#fff
by default)ion-floating-menu:
For example
$scope.$on('floating-menu:open', function(){
...
});
If you have any question or remark, you can either:
Have fun!
FAQs
Material UI-like Floating Action Button and Menu for Ionic applications
We found that ion-floating-menu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.