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

saprun-popover

v2.5.0

Published

Custom popover with transcluding content.

Downloads

4

Readme

ng-popover

Custom popover with transcluding content. Original demo: http://tarun-dugar.github.io/ng-popover/ alt tag

Installation

npm install https://github.com/punkkk/ng-popover.git

Features

All old feauters +:

  1. external scope inside
  2. focus leave closing
  3. horizontal offset, if you want to use it inside something like "card"

Usage

  1. Include saprun-popover.js(or min.js) after loading AngularJS.
  2. Include saprun-popover.css.
  3. Add the saprun-popover module to your project:
```javascript
var app = angular.module('yourModuleName', ['saprun-popover'])
```
  1. Add the saprun-popover directive along with multiple attributes:
```html
<button class="my-custom-class" saprun-popover closeOnClick="false" direction="bottom" horizontalOffset="70" padding="20px" style="position: relative;">
    <!-- content of popover here -->
</button>
```
  1. IMPORTANT: Keep in mind, the 'position' property of the element to which the directive is applied will be set to 'relative' if the current value of 'position' is 'static'.

Options

###mode Decide on what event you want the popover to open - click or mouseover. If not specified, the click event will be used.

###close-on-click Set close-on-click to true if you want the popover to close on click irrespective of the mode. If not set, the popover closes on click only if the mode is click.

###close-on-mouseleave Set close-on-mouseleave to true if you want the popover to close on mouseleave irrespective of the mode. If not set, the popover closes on mouseleave only if the mode is mouseover.

###padding Set the padding for the popover content just like in CSS.

###background-color Set the background-color of the popover.

###text-color Set the color of the text in the popover.