You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I just want to ask how to know if the content reaches the maximum line being set.
Let say for example I set the maximum to 5 lines and the text content has only 1 line. I wanted to enable clamping if it reaches more than 5 lines.
Sorry for the late reply. You need to set clampLines to 5 for that.
Hi @Frondor,
Sorry, my question is a bit confusing. What I meant to ask is how to dynamically detect text lines if it reaches the maximum clamp lines let say 5. I wanted to programmatically enable the clamping of lines when it reaches the maximum amount of lines.
justlester
changed the title
How to detect if content reaches maximum line.
How to programmatically enable the clamping of lines when it reaches the maximum amount of lines
Sep 21, 2020
Hi! I just want to ask how to know if the content reaches the maximum line being set.
Let say for example I set the maximum to 5 lines and the text content has only 1 line. I wanted to enable clamping if it reaches more than 5 lines.
The content can be html or text.
a little help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: