Web Component providing an easy way to display tooltips for any html element

<vcf-tooltip>

npm version Published on Vaadin Directory

Web Component providing an easy way to display tooltips for any html element.

Screenshot of vcf-tooltip

Live demo ↗ | API documentation ↗

Installation

Install vcf-tooltip:

npm i @vaadin-component-factory/vcf-tooltip --save

Usage

Once installed, import it in your application:

import '@vaadin-component-factory/vcf-tooltip';

Add <vcf-tooltip> element with attribute for which will contain id of target element, to the page. Now after hovering on target element, toltip will be displayed.

<button id="element-id">Hover me</button>
<vcf-tooltip for="element-id" position="top">
  A short text describing the element.
</vcf-tooltip>

Running demo

  1. Fork the vcf-tooltip repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the vcf-tooltip directory, run npm install to install dependencies.

  4. Run npm start to open the demo.

Server-side API

This is the client-side (Polymer 3) web component. If you are looking for the server-side (Java) API for the Vaadin Platform, it can be found here: Tooltip

License

Apache License 2.0

Install

Link to this version
ImportedReleased 21 October 2019Other
Framework Support
Polymer 2.0+
Polymer 3.0+
Browser Independent
Install with
bower install --save vaadin-component-factory/vcf-tooltip"#1.2.1"
Run the above Bower command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 1.2.1

Dependencies

  • polymer#^2.0.0
  • vaadin-themable-mixin#vaadin/vaadin-themable-mixin#^1.0.0
  • vaadin-license-checker#vaadin/license-checker#^2.0.1
  • vaadin-lumo-styles#vaadin/vaadin-lumo-styles#^1.0.0
  • vaadin-element-mixin#^2.1.2