jQuery Ellipsis Text Truncation Tooltip Plugin | ellipsisTooltip

jQuery ellipsis tooltip plugin that cuts long text strings to fit on a single line, and displays overflow text in a tooltip on mouseover. It is based on the Bootstrap framework.

jquery truncate string, jquery truncate text with ellipsis, jquery truncate text and expand, jquery trim string after character, remove &nbsp from string jquery

How to make use of it:

1. Download and import the jquery.ellipsisTooltip.js script into the Bootstrap project.

<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="jquery.ellipsisTooltip.js"></script>

2. Call the plugin/extension on the cover of the text.

$(".demo").ellipsisTooltip()

3. You can also use the data-ellipsis="true" attribute in the body wrapper to configure the plugin automatically.

<h1 data-ellipsis="true">Long Text Here</a>

4. Customization options.

// custom html content to diplay in the tooltip
content: undefined,

// parent container
parent: $ellipsis.parent(),

// parent container width
width: $ellipsis.parent().width(),

// bind window resize event
resize: true,

// the position of the tooltip
placement: "top",

// tooltip's parent container
container: "body",

// tooltip template
template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner" style="max-width: 250px; word-wrap: break-word"></div></div>'

lightweight jquery text truncation & tooltip, jquery.ellipsisTooltip Plugin/Github


See Demo And Download

Official Website(anton-permiakov): Click Here

This superior jQuery/javascript plugin is developed by anton-permiakov. For extra advanced usage, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…