Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clamping callback #12

Open
oyeanuj opened this issue May 27, 2018 · 1 comment
Open

Clamping callback #12

oyeanuj opened this issue May 27, 2018 · 1 comment

Comments

@oyeanuj
Copy link

oyeanuj commented May 27, 2018

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?

@Kikobeats
Copy link
Member

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

PR for that are welcome 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants