Custom buttons with long description
-
- Posts: 3
- Joined: March 1st, 2016, 1:42 am
Custom buttons with long description
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
- Posts: 127185
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: Custom buttons with long description
How did you add the custom buttons?
-
- Posts: 3
- Joined: March 1st, 2016, 1:42 am
-
- Posts: 6403
- Joined: February 3rd, 2009, 6:29 pm
Re: Custom buttons with long description
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;