what best way custom truncation in text field? problem i’m trying solve need display long urls in little space, users concerned server name , lastpathcomponent.
for example, http://www.google.com/verylongname1/verylongname2/coolpicturewithveryveryveryverylongname.png
would ideally show http://www.google.com/…(+ longest suffix can fit in).
middle truncation doesn’t want since gives me more like: http://www.google.com/verylongname1...veryveryveryverylongname.png
the text needs editable too, if modify/valuetransform string have reconstruct during edit not cleanest possible way. ideas? thanks!
Comments
Post a Comment