Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
angular-action-sheet
Advanced tools
This package is now deprecated and has been replaced by slidey-pane. Please use that package instead.
a directive that provides content in a sheet that slides out like a drawer
This directive provides very a very simple content area that you can slide in and out much like a modal with hopes of being less obtrusive than a modal and more responsive on small screens.
Note: This project is unstable and very likely to change
npm install --save angular-action-sheet
Include the directive in your html
<script src="node_modules/angular-action-sheet/angular-action-sheet.js"></script>
Add jbActionSheet
to your module's dependencies
angular.module('MyApp', ['jbActionSheet']);
You'll probably want the styles too (for now, just .scss is provided)
@import "node_modules/angular-action-sheet/styles/sass/styles";
Just use the jb-action-sheet
directive somewhere and add your content:
<jb-action-sheet reveal="someboolean" on-close="callWhenClosed()">
<div>your content here</div>
</jb-action-sheet>
If you want to create custom sheet sizes, just define some styles like this:
.big > .jbas-sheet {
width: 80%;
}
.med > .jbas-sheet {
width: 50%;
}
then include the class on the jb-action-sheet
directive like this:
<jb-action-sheet class="big"></jb-action-sheet>
Optionally: you can use the included dist/sizes.css
which provides
.jbas-sheet--big
, .jbas-sheet--med
, .jbas-sheet--small
.
Note: Currently this directive hacks a .jbas-clipped
class to the body when
the sheet is in the revealed state. This will be fixed sometime to be less
hacky.
reveal
reveal
is watched. When it becomes true, the sheet is revealed.
on-close
Provide any expression to be evaluated when the user clicks the close button on the sheet.
size
A bit of a hacky solution at the moment to control the size of the sheet. Can
be any of big
, med
, small
.
This functionality is almost certianly going to change soon.
Lots of things!
FAQs
angular directive for sliding content out like a drawer
The npm package angular-action-sheet receives a total of 0 weekly downloads. As such, angular-action-sheet popularity was classified as not popular.
We found that angular-action-sheet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.