A jQuery plugin for advanced cross-browser ellipsis on multiple line content.
Demos and documentation at http://dotdotdot.frebsite.nl
Template.yourTemplate.rendered = function() {
$('.ellipsis').dotdotdot({
// configuration goes here
});
}See the documentation for more advanced usage and examples, including:
- 'Read more' type links at the end of the text
- Fluid layouts
- Smart truncating long pathnames