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

Is it possible to add title property when text is clamped #66

Open
luiscoms opened this issue Jun 6, 2020 · 0 comments
Open

Is it possible to add title property when text is clamped #66

luiscoms opened this issue Jun 6, 2020 · 0 comments

Comments

@luiscoms
Copy link

luiscoms commented Jun 6, 2020

My workaround was to wrap is with a div with title, but it would be great to have an option to this.

import LinesEllipsis from 'react-lines-ellipsis'

<div title="long long text">
  <LinesEllipsis
    text='long long text'
    maxLine='3'
    ellipsis='...'
    trimRight
    basedOn='letters'
  />
</div>

Like this:

import LinesEllipsis from 'react-lines-ellipsis'

<LinesEllipsis
  text='long long text'
  maxLine='3'
  ellipsis='...'
  trimRight
  basedOn='letters'
  insertTitle
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants