js/utils/ellipsis.js
define(['jquery', 'bootstrap', 'jQuery.dotdotdot'], function($) {
$(function() {
$('.ellipsis-dot').dotdotdot();
$('.ellipsis-tooltip').dotdotdot({
callback: function( isTruncated, orgContent ) {
if (isTruncated) {
$(this).tooltip({
title: orgContent.text()
});
}
}
});
});
});