Custom buttons with long description

Discussion of features in Mozilla Thunderbird
Post Reply
Temporary-Failure
Posts: 3
Joined: March 1st, 2016, 1:42 am

Custom buttons with long description

Post by Temporary-Failure »

I have some custom buttons on toolbar but because button text is quite long, is it possible to make line breaks to the button name?
User avatar
DanRaisch
Moderator
Posts: 127185
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Custom buttons with long description

Post by DanRaisch »

How did you add the custom buttons?
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: Custom buttons with long description

Post by morat »

You can use a newline character in a button tooltip, but not in a button label.

Code: Select all

/*Initialization code*/
var text = "alpha beta gamma";
text = text + "\n" + "delta epsilon";
this.label = text;
this.tooltipText = text;
Post Reply