Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/upplication/angular-helptip

Simple floating tooltip for AngularJS
https://github.com/upplication/angular-helptip

Last synced: about 8 hours ago
JSON representation

Simple floating tooltip for AngularJS

Awesome Lists containing this project

README

        

# angular-helptip
Helptip is a simple floating tooltip for angular

## Instalation
```
$ yarn add angular-helptip
```

Include the files on your html
```html



```

And finally add it to your application dependencies
```js
angular.module('app', [ 'upp.helptip' ])
```

## Usage

Add it as an attribute html
```html


```

Also, if you are using `angular-translate` you can pass directly the translation key
insetad of using the `translate` filter
```html



```

Futhermore, you can add a timeout for when the cursor leaves the element that triggered the
tooltip to show. This way, the tooltip will not disapear until the given time has passed
since the cursor left the element.
```html



```

## Config
angular-helptip exposes a provider that allows configuring some of its internal values:
```js
angular.module('app', [ 'upp.helptip' ])
.config(function(helptipConfigProvider) {
// Sets the class to be used
helptipConfigProvider.className('helptip')
// Determines if we should try to use $translate if available
helptipConfigProvider.useTranslate(true)
// Default timeout when using helptip-timeout config
helptipConfigProvider.timeout(1000)
})
```