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

Latest commit

 

History

History
16 lines (13 loc) · 860 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 860 Bytes

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.