Truncate text into the width of his container with the JQuery plugin smart Truncation
- Add
collective.js.jqsmartTruncation
to your buildout configuration:
[instance]
eggs +=
collective.js.jqsmartTruncation
- Install the generic setup profile of the package
- use
smartTruncation()
in your own package to truncate the text in the element:
jq('span.title a').smartTruncation();
-
jQuery.smarttruncation
: http://polarblau.github.com/smarttruncation/ - Main github project repository: https://github.com/collective/collective.js.jqsmartTruncation
- Issue tracker: https://github.com/collective/collective.js.jqsmartTruncation/issues
- Package on pypi: http://pypi.python.org/pypi/collective.js.jqsmartTruncation
- Plug-In Site: http://plugins.jquery.com/project/smarttruncation
This package is copyright by 4teamwork company.