nanoclamp icon indicating copy to clipboard operation
nanoclamp copied to clipboard

Clamping callback

Open oyeanuj opened this issue 6 years ago • 1 comments

Hi @Kikobeats, thanks for putting out this library! I am wondering if it would be possible to accept a callback function that is called if text is being clamped?

My use-case is that I want to show a 'Read More' link incase the text is being clamped, and nothing if all the text is being displayed.

Thoughts?

oyeanuj avatar May 27 '18 04:05 oyeanuj

Sounds a good idea, I think @breadadams talked me about that

PR for that are welcome 🙂

Kikobeats avatar May 27 '18 17:05 Kikobeats