Truncate text lable

Is there a way to make a text label automatically tuncate to an elipsis (…) if label character length is more than x characters?

OnLoad:
If length of text on this widget is greater than 20
Set text on this widget to: [[This.text.substr(0,20)]]...

You can copy/paste this onto each text widget you want affected. Bonus points: make the value a global variable so you only have to change it in one place if you want to change the number of characters.

2 Likes

Yes please!! and Thank you!!