
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
github.com/bradmartin/nativescript-floatingactionbutton
XML widget to create the Material Design Floating Action Button for NativeScript apps.
Material Design Floating Action Button Spec
npm install nativescript-floatingactionbutton
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"
xmlns:FAB="nativescript-floatingactionbutton">
<Page.actionBar>
<ActionBar title="Native FAB" backgroundColor="#3F51B5" color="#fff" />
</Page.actionBar>
<grid-layout rows="auto, *">
<list-view row="1" items="{{ users }}">
<list-view.itemTemplate>
<label text="{{ name }}" textWrap="true" fontSize="18" margin="20" />
</list-view.itemTemplate>
</list-view>
<FAB:fab tap="fabTap"
row="1"
icon="res://ic_add_white"
rippleColor="#f1f1f1"
class="fab-button" />
</grid-layout>
</Page>
PLEASE NOTE: The fab is on the same row number as the listview
Recommended CSS styles.
.fab-button {
height: 70;
margin: 15;
background-color: #ff4081;
horizontal-align: right;
vertical-align: bottom;
}
exports.fabTap = function(args) {
console.log('tapped');
}
Property | Android | iOS | Description | Note |
---|---|---|---|---|
backColor | X | X | Sets the background color of the button | Better set in CSS |
icon | X | X | Supports the same image source options that NativeScript images support | Required on android |
rippleColor | X | Ripple color on lollipop devices, it will fill the FAB on pre-lollipop devices | None | |
hideOnSwipeOfView | X | X | Directs the fab to animate itself in and out on scroll | Pass it the name of the view to monitor for a scroll event example: hideOnSwipeOfView="userListView" |
hideAnimationDuration | X | X | How many milliseconds it takes for the button to hide. | Default if not set: 300ms |
swipeAnimation | X | X | slideDown, slideUp, slideLeft, slideRight, scale | Default is slideDown |
NativeScript Version | FloatingActionButton Plugin Version |
---|---|
1.6+ | 2.+ |
1.5 | 1.91 |
FAQs
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 latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.