Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ion-floating-menu
Advanced tools
Readme
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
The npm package ion-floating-menu receives a total of 1 weekly downloads. As such, ion-floating-menu popularity was classified as not popular.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.