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

@momsfriendlydevco/angular-bs-tooltip

v1.3.4

Published

AngularJS + Bootstrap tooltip support

Downloads

32

Readme

angular-bs-tooltip

AngularJS + Bootstrap tooltip support.

DEMO

Installation

  1. Grab the NPM
npm install --save @momsfriendlydevco/angular-bs-tooltip
  1. Install the required script + CSS somewhere in your build chain or include it in a HTML header:
<script src="/libs/angular-bs-tooltip/dist/angular-bs-tooltip.min.js"/>
  1. Include the router in your main angular.module() call:
var app = angular.module('app', ['angular-bs-tooltip'])
  1. Use somewhere in your template:
<a class="btn btn-primary" tooltip="Hello World!">Top</a>

A demo is also available. To use this follow the instructions in the demo directory.

API

Options

The following options can be applied to any element to configure tooltips.

| Option | Type | Default | Description | |---------------------|-----------|---------|------------------------------------------------------------------------------| | tooltip | string | "" | The content to display in the tooltip. This is rendered dynamically so Angular braces can be used. If tooltip-html is true the contents are rendered as HTML | | tooltip-position | string | top | Where to position the tooltip. Values are: top, bottom, left, right | | tooltip-container | string | body | The element to attach the tooltip to. Values are: body, element | | tooltip-trigger | string | hover | When to display the tooltip. Values are: hover, focus, click, manual | | tooltip-html | boolean | false | Whether to render the contents as HTML. If false, plain text is used | | tooltip-show | boolean | false | Force the tooltip to show or hide (this overrides tooltip-trigger if true or false, set to undefined to ignore) | | tooltip-tether | boolean OR number | false | Use Tether to dynamically pin the element. Use this (and include Tether in the project) if your underlying element changes position frequently. This setting is the time interval Tether should check for repositions (a value of true = 100). NOTE: If you are just refreshing positions periodically use the $scope.$broadcast('bs.tooltip.reposition') instead |

Events

This directive also responds to the following broadcast events from the scope. To use these simply broadcast from the parent scope downwards using $broadcast(). For example $scope.$broadcast('bs.tooltip.reposition') will force all tooltips below the calling controller to reposition themselves.

| Event | Description | |-------------------------|-------------| | bs.tooltip.reposition | Reposition all tooltips to their parent element if they are visible. If tooltip-tether is enabled on any tooltip it will be used for positioning, if not the tooltip is repositioned by Bootstrap |