Announcement
Collapse
No announcement yet.
X
-
Yes and no. If you want to change title width because a title is wrapping, you can turn wrapping off. Otherwise, make sure the column holding the title is the width you want. IF you still have trouble consider posting a full test case.
-
Hi davidj6.
Do you mean
Code:formItem.setWrapTitle(false); formItem.setTitle("<span style=\"width:200px\">foobar</span>");
That didn't change anything for me.
Regards,
Luc
Leave a comment:
-
Normally the title width is related to the column where it resides. You can turn title wrapping off if that's an issue.
Leave a comment:
-
Any idea why
Code:formItem.setTitle("<span style=\"color:green\">foobar</span>");
Code:formItem.setTitle("<span style=\"width:200px\">foobar</span>");
Any suggestions as how to set the width of a FormItem's title would be greatly appreciated.
Regards,
Luc
Leave a comment:
-
UNFORTUNATELY ,dears, the in-line style does not work here, soo my code:
Code:name = new TextItem("name"); String value = "<span style=\"color:#FFA500\">My orange string.</span>"; name.setValue(value);
Leave a comment:
-
You can inline the CSS style too.
Code:String orangeString = "<span style=\"color:#FFA500\">My orange string.</span>";
Leave a comment:
-
in fact, i what to change the color of the text in text box, not the title, i guess, setTextBoxStyle method maybe work, right?
Leave a comment:
-
You can use setTitleStyle(), there are other styling methods as well.
Leave a comment:
-
how to change the font color of TextItem.
as title, i can not find such method as setFontColor(...), who can tell me how to do that?
thanks.Tags: None
Leave a comment: