npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

slidey-pane

v1.0.2

Published

angular directive for sliding content out like a drawer

Downloads

16

Readme

slidey-pane

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

Installation

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";

Usage

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.

Directive Attributes

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.

TODO

Lots of things!