0.1.13 • Published 4 years ago

ngx-better-tooltip v0.1.13

Weekly downloads
93
License
MIT
Repository
github
Last release
4 years ago

ngx-better-tooltip

Installation

To install this library, run:

$ npm install ngx-better-tooltip --save

Usage

There are three directuves you must use toottip-wrapper, toottip-target, and toottip-content. See below

From your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { SampleModule } from 'ngx-better-tooltip';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    TooltipModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
<tooltip-wrapper direction="right">
  <tooltip-content>
    Bye
  </tooltip-content>
  <tooltip-target>
    Hi
  </tooltip-target>
</tooltip-wrapper>

demo

All available options are:

  • color: background color
  • display: css diplay mode of the host, defaults to inline-block
  • direction: defaults to top
  • toggle: weather of not the tooltip is toggled on click or on mouseover

License

MIT © Daniel Whitney

0.1.12

4 years ago

0.1.13

4 years ago

0.1.11

6 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago