CezaryDanielNowak / React-dotdotdot

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

ellipsis option not working #17

Closed stanleycyang closed 7 years ago

stanleycyang commented 7 years ago
screen shot 2017-04-24 at 11 22 00 pm

I tried changing it to 'hello' and it did not work. Any idea why?

williammustaffa commented 7 years ago

Same here

kkwiatkowski commented 7 years ago

@stanleycyang @williammustaffa the prop for changing truncat character is: truncationChar, so in your case it should be (assuming that Truncate is React-dotdotdot component):

<Truncate
  truncationChar={ 'hello' }
  clamp={ 7 }>
  <p>
    { testimonial }
  </p>
</Truncate>

Obviously there is misleading and not up-to-date information in README.