Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An easy-to-use Angular (6+) component for displaying tooltips

License

NotificationsYou must be signed in to change notification settings

gustafguner/angular-tooltip

Repository files navigation

An easy-to-use Angular (6+) component for displaying tooltips.

Check it out in action

Here

Installation

Install it via NPM

npm install --save @gustafguner/angular-tooltip

Then import theAngularTooltipModule and add it toimports in yourAppModule.

import{BrowserModule}from'@angular/platform-browser';import{NgModule}from'@angular/core';import{AppComponent}from'./app.component';import{AngularTooltipModule}from'@gustafguner/angular-tooltip';@NgModule({declarations:[AppComponent],imports:[BrowserModule,AngularTooltipModule],providers:[],bootstrap:[AppComponent]})exportclassAppModule{}

Usage

Basic usage

In order to useangular-tooltip you only have to wrap the component<angular-tooltip> around the element that you want to attach a tooltip to. The following example demonstrates how to add a tooltip to an<a> element.

<angular-tooltiptooltip-text="I'm a tooltip"tooltip-direction="right"><ahref="">Hover me</a></angular-tooltip>

The attributetooltip-text controls the text content of the tooltip. The attributetooltip-direction controls in which direction the tooltip will appear.tooltip-direction can be set to eithertop,right,bottom orleft.

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp