angular-ellipsis
angular-ellipsis copied to clipboard
Angular directive to truncate multi-line text to visible height
This pull request introduces a binary chop algorithm to significantly improve the search for the best-fit string size for a given container. Without this, using a character-by-character (blank-ellipses-separator) check would...
Improved isOverflowed condition to avoid IE rounding issue.
in case when parent container is pretty narrow, first word goes out of the parent frame. width check was added to isOverflowed() function Together with > ellipsis-separator="" text is truncated...
In iOS there seems to be an issue with elements not having the correct element.scrollHeight when the buildEllipsis() is fired. The plugin seems to work perfectly on all desktop browsers....
I added data-ellipsis directive to spans and i am getting ellipsis and working fine when the span is having height which renders only two lines, the issue is with single...
DOM manipulation should be wrapped inside setTimeout function. The timeout is required to allow the DOM manipulation from the last angularjs digesty cycle to complete.
I need to use this in angular 2. Is there a way to use it in angluar 2?
Hello, I have noticed the directive is working when placed onto elements. So I have a few questions : Is there a reason why it is not working on other...
@dibari i have content in which there are p, pre, span, ul li and other html tag. Which i am assign from the controller using ng-bind-html. In this case full...