Clamp.js icon indicating copy to clipboard operation
Clamp.js copied to clipboard

Feature Request: option to stop after boundaries instead of removing partial words

Open adrienne opened this issue 14 years ago • 1 comments

I'd like an option to stop after a full word, actually, instead of moving on to the last step (individual characters.) So you could set, say, boundariesOnly : true , and then once it got to the step where it's found a space but it's a little too short, it would STOP and put an ellipsis there. Because I'd rather only have full words, sometimes, even if that means my last line is shorter than the full width of my element.

adrienne avatar Apr 25 '11 15:04 adrienne

I've gotten this request before and I agree that it would be a good addition. I'll try to look into implementing it in the near future. Thanks for using Clamp.js!

josephschmitt avatar May 18 '11 20:05 josephschmitt