CezaryDanielNowak / React-dotdotdot

Multiline text ellipsis for react. Demo:
https://nowak.click/react-dotdotdot/
MIT License
401 stars 54 forks source link

Add classname when clamped #29

Open dcorb opened 6 years ago

dcorb commented 6 years ago

I want to add a "more" link only when text is clamped..

It would be nice I could do something like this:

.dotdotdot-clamped-text link {
display:none;
}

Just needs a class to the container to know if text is clamped or not, it will be helpful

alexxmde-zz commented 6 years ago

Looking for this feature too, would be very handy

josiahgallen commented 6 years ago

yes please! this would be a great feature to include

dparker2 commented 5 years ago

Is there currently any way to detect if the content is clamped from JS?