Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

JavaScript tooltip library. Makes tooltips positioned outside overflowed elements.

License

Notifications You must be signed in to change notification settings

adambanaszkiewicz/fixed-tooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fixed-tooltip

JavaScript tooltip library. Makes tooltips positioned outside overflowed elements. Creates the tooltip at the end of the body, and moves as positioned element next to target. When you have a overflowed container, and You want to use tooltip for any element in this container, this plugin helps You with out.

Usage

$('[data-tooltip]').fixedTooltip();

Options

  • template - HTML template used to create tooltip. One of the elements inside must have 'ct-text' class. Script inserts to this element the tooltip text.
  • classHidden - Class added to hidden tooltip.
  • classShowed - Class added to showed tooltip.
  • attrText - Element attribute name, from which the script should take the tooltip text.
  • offset - Offset in pixels from target element.
  • removeTitleAttr - If true, script removes title attribute from target element.

About

JavaScript tooltip library. Makes tooltips positioned outside overflowed elements.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published