Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
ng2-floating-action-menu
Advanced tools
updated version of [ng2-floating-button](https://github.com/tahashahid/ng2-floating-button)
updated version of ng2-floating-button
$ npm install ng2-floating-action-menu --save
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { FloatingActionMenuModule } from 'ng2-floating-action-menu';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
// Specify your library as an import
FloatingActionMenuModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
component.html
<ng2-floating-action-menu
[placement]="config.placment"
[effect]="config.effect"
[label]="config.label"
[iconClass]="config.iconClass"
[activeIconClass]="config.activeIconClass"
[toggle]="config.toggle"
[buttons]="buttons">
</ng2-floating-action-menu>
component.ts
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app';
config;
buttons: Array<FloatingActionButton> = [
{
iconClass: 'ion-social-github',
label: 'follow me on github',
onClick: function() {}
},
{
iconClass: 'ion-social-facebook',
label: 'follow me on facebook',
onClick: function() {}
},
{
iconClass: 'ion-social-linkedin',
label: 'linkedin',
onClick: function() {}
}
];
placements = [
{
value: 'br',
key: 'bottom right'
},
{
value: 'bl',
key: 'bottom left'
},
{
value: 'tr',
key: 'top right'
},
{
value: 'tl',
key: 'top left'
}
];
effects = [
{
value: 'mfb-zoomin',
key: 'Zoom In'
},
{
value: 'mfb-slidein',
key: 'Slide In + Fade'
},
{
value: 'mfb-fountain',
key: 'Fountain'
},
{
value: 'mfb-slidein-spring',
key: 'Slide In (Spring)'
}
];
toggles = ['click', 'hover'];
constructor() {
this.config = {
placment: 'br',
effect: 'mfb-zoomin',
label: 'main button label',
iconClass: 'ion-plus-round',
activeIconClass: 'ion-close-round',
toggle: 'click',
buttons: this.buttons
};
}
}
MIT © Shalva Jashiashvili
FAQs
updated version of [ng2-floating-button](https://github.com/tahashahid/ng2-floating-button)
We found that ng2-floating-action-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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.