trunk8 icon indicating copy to clipboard operation
trunk8 copied to clipboard

Option to use data-lines (or similar) on the element

Open m9dfukc opened this issue 12 years ago • 2 comments

Would be nice to define a data element on the tag which states the amount of lines it should shorten to. Doing this manually in a loop for now but would be nice to have this build in.

m9dfukc avatar Oct 10 '12 11:10 m9dfukc

:+1:

woozyking avatar Jan 26 '15 19:01 woozyking

I agree it would be a nice feature. For now, I'm also using this loop, which is simply enough:

$('[data-truncate="true"]').each(function( index, element ) { $(element).trunk8({ lines: $(this).data("truncate-lines") }); });

fchristant avatar Aug 25 '15 20:08 fchristant