MozillaZine

Custom buttons with long description

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

Post Posted March 16th, 2016, 2:41 pm

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?

DanRaisch
Moderator

User avatar
 
Posts: 120269
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted March 16th, 2016, 3:34 pm

How did you add the custom buttons?

Temporary-Failure
 
Posts: 3
Joined: March 1st, 2016, 1:42 am

Post Posted March 17th, 2016, 1:04 am


morat
 
Posts: 2864
Joined: February 3rd, 2009, 6:29 pm

Post Posted March 17th, 2016, 5:53 am

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;

Return to Thunderbird Features


Who is online

Users browsing this forum: No registered users and 2 guests