Socket
Socket
Sign inDemoInstall

nativescript-floatingactionbutton

Package Overview
Dependencies
0
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nativescript-floatingactionbutton

A NativeScript plugin to provide an XML widget to implement the Material Design Floating Action Button in an Android app.


Version published
Weekly downloads
10
decreased by-69.7%
Maintainers
1
Install size
84.3 kB
Created
Weekly downloads
 

Readme

Source

NativeScript-FloatingActionButton

XML widget to create the Material Design Floating Action Button for Android NativeScript apps

Installation

npm install nativescript-floatingactionbutton

Screenshot


FAB

Usage

XML

<Page xmlns="http://schemas.nativescript.org/tns.xsd"
      xmlns:FAB="nativescript-floatingactionbutton/fab">
    <FAB:fab tap="fabTap"
         icon="icon"
         backColor="#FF5252"
         rippleColor="#FF8A80"
         class="fab-button"
         margin="15" />
</Page>  

Notes*

The backColor property will set the backgroundColor of the FAB

The rippleColor property will set the ripple color on lollipop devices, it will fill the FAB on pre-lollipop devices

Currently the icon needs to be an image in the App_Resources folder. PRs welcome to enhance the icon/image functionality.

CSS

I recommend the following CSS styles.


height: 70;
horizontal-align: right;
vertical-align: bottom;
JS

function fabTap(args) {
    console.log('tapped');
}
exports.fabTap = fabTap;

Keywords

FAQs

Last updated on 22 Jan 2016

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