Below are ways to install the library using npm:
npm i ngx-deva-tooltip
First import the module from the lib in the module you want to use it
imports: [
BrowserModule,
NgxDevaTooltipModule
],
<ngx-deva-tooltip
[top]="true"
description="Top direction"
bgColorTooltip="#ffa500"
colorTooltip="#800080"
[tabIndex]="0"
>
<input type="button" value="Hover Me" />
</ngx-deva-tooltip>
Props | type | Description |
---|---|---|
top | boolean | Top direction |
left | boolean | Left direction |
bottom | boolean | Bottom direction |
right | boolean | Right direction |
description | string | Element description |
bgColorTooltip | string | Background color of tooltip |
colorTooltip | string | Color of tooltip |
tabIndex | number | Element that can receive input focus |