Clamp.js
Clamp.js copied to clipboard
Feature Request: option to stop after boundaries instead of removing partial words
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.
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!