简体   繁体   English

SmartGWT〜字段标题跨越两行

[英]SmartGWT ~ Field Title Span Two Lines

Is it possible to make a ListGridField's title span two lines? 是否可以使ListGridField的标题跨越两行?

I have a listGrid with a very long title "Meets one or more Function / Job Requirement" 我有一个带有很长标题“满足一个或多个功能/作业要求”的listGrid

This is a very long title and in some cases can take room away from the other columns widths. 这是一个非常长的标题,在某些情况下,可能会占用其他列宽度的空间。 Is it possible to force the title to span two lines? 是否可以强制标题跨越两行? Id prefer that given there is enough room for all the titles that this would not span two lines. 我更喜欢鉴于所有标题都有足够的空间,因此不会跨越两行。

You could use a static wrap: just insert a br tag (yes the title can use HTML). 您可以使用静态换行:只需插入br标签(是,标题可以使用HTML)。 Otherwise you could set the attribute 'wrap' on the ListGridField: you'll also need to adjust the headerHeight 否则,您可以在ListGridField上设置属性“ wrap”:您还需要调整headerHeight

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM