chaodyz / ngx-line-truncation

An Angular line truncating solution. Truncate text block by given line number and add ellipsis to the end.

Home Page:https://line-truncation-site.appspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input option to disable truncate

unlight opened this issue · comments

My goal is add "see more" button, after pressing it text must expands.
But I cant set lineCount to 999+, because of #10

Can we add input property disabled which will disable truncation logic?

<p [line-truncation]="lineCount" [disabled]="!isExpanded"></p>

Hi, thanks for reaching out, I can put an update for this. Change will be in this week

PR: to #13

need to do some testing, and then after that i will be updating the npm package

close this issue as the requirement has been fulfilled