GithubHelp home page GithubHelp logo

oooh-name / angular-tooltips Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intellipharm-pty-ltd/angular-tooltips

0.0 1.0 0.0 1.36 MB

Tooltips for any element using any html in AngularJS with no requirements.

Home Page: http://intellipharm.github.io/angular-tooltips/

License: MIT License

JavaScript 45.80% CSS 54.20%

angular-tooltips's Introduction

angular-tooltips

Tooltips for any element using any html in AngularJS with no requirements.

Why another tooltip library?

There are other libraries out there like https://github.com/720kb/angular-tooltips or https://angular-ui.github.io/bootstrap/#/tooltip but they either have requirements on other libraries or are overly convoluted in their approach (which can break other things).

This is a very small (8 kB) library that keeps things simple. It also cleans up after itself and doesn't leave rouge elements all over the window.

Installation

Install through bower

bower install tooltips-angular

Include the library files

<link rel="stylesheet" href="bower_components/dist/angular-tooltips.css" />
<script src="bower_components/dist/angular-tooltips.js"></script>

Add the angular model tooltips

angular.module('app', ['tooltips'])

Usage

Just add a normal title attribute and it will be overridden.

<i class="fa fa-star" title="This is a star!"></i>

You can also specify the direction of the tooltip using title-direction with the options: top, top-right, right-top, right, right-bottom, bottom-right, bottom, bottom-left, left-bottom, left, left-top, top-left

<i class="fa fa-star" title="This is a star!" title-direction="right"></i>

Demo

http://intellipharm.github.io/angular-tooltips/

Requrements

None!!

angular-tooltips's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.