
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
slidey-pane
Advanced tools
a directive that provides content in a pane 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 slidey-pane
Include the directive in your html
<script src="node_modules/slidey-pane/slidey-pane.js"></script>
Add jbSlideyPane
to your module's dependencies
angular.module('MyApp', ['jbSlideyPane']);
You'll probably want the styles too (for now, just .scss is provided)
@import "node_modules/slidey-pane/styles/sass/styles";
Just use the jb-slidey-pane
directive somewhere and add your content:
<jb-slidey-pane reveal="someboolean" on-close="callWhenClosed()">
<div>your content here</div>
</jb-slidey-pane>
If you want to create custom pane sizes, just define some styles like this:
.big > .jbsp-pane {
width: 80%;
}
.med > .jbsp-pane {
width: 50%;
}
then include the class on the jb-slidey-pane
directive like this:
<jb-slidey-pane class="big"></jb-slidey-pane>
Optionally: you can use the included dist/sizes.css
which provides
.jbsp-pane--big
, .jbsp-pane--med
, .jbsp-pane--small
.
Note: Currently this directive hacks a .jbsp-clipped
class to the body when
the pane is in the revealed state. This will be fixed sometime to be less
hacky.
reveal
reveal
is watched. When it becomes true, the pane is revealed.
on-close
Provide any expression to be evaluated when the user clicks the close button on the pane.
size
A bit of a hacky solution at the moment to control the size of the pane. 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 slidey-pane receives a total of 2 weekly downloads. As such, slidey-pane popularity was classified as not popular.
We found that slidey-pane 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.