Socket
Socket
Sign inDemoInstall

@corentinmag/ngx-float-button

Package Overview
Dependencies
64
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @corentinmag/ngx-float-button

A highly customizable float action button build for Angular2+ with Angular material


Version published
Weekly downloads
26
increased by2500%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

To use this library:

$ npm install @corentinmag/ngx-float-button
$ ng add @angular/material

check demo here

// app.module.ts

import { NgxFloatButtonModule } from '@corentinmag/ngx-float-button';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
...

@NgModule({
    ...,
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        NgxFloatButtonModule
    ]
})
<!-- app.component.html -->
<ngx-float-button>
    <ngx-float-item-button></ngx-float-item-button>
    <ngx-float-item-button></ngx-float-item-button>
    <ngx-float-item-button></ngx-float-item-button>
</ngx-float-button>

Ngx-float-button

List of Inputs

@Inputstypedefaultdescription
direction'top' | 'left' | 'right' | 'bottom'topposition of the child buttons relative to the main button
iconstringhomeshould be a material icon string (https://fonts.google.com/icons)
tooltipstringhomenot used
colorThemePaletteprimarymain button color
position'br' | 'bl' | 'tl' | 'tr'breither the main button is positionned on the bottom-right, bottom-left, top-left or top-right of the viewport
disabledbooleanfalseeither the main button is disabled or not
spaceBetweennumber5the space in pixel between each child button
spaceGapnumber15the space in pixel between the main button and the first child button
isOpenbooleanfalseeither the child buttons should appear at startup
hoverablebooleanfalseeither the user should hover or click the main button to reveal the child buttons
tooltipDisabledbooleanfalseeither tooltip is enabled or not

Ngx-float-item-button

List of Inputs

@Inputstypedefaultdescription
iconstringhomeshould be a material icon string (https://fonts.google.com/icons)
tooltipstringhomethe tooltip text
colorThemePaletteprimarymain button color
disabledbooleanfalseeither the button is disabled or not
tooltipDisabledbooleanfalseeither tooltip is enabled or not

Keywords

FAQs

Last updated on 16 Feb 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc