How to apply style on StaticTextItem component of DynamicForm in SmartGWT?

我是研究僧i 提交于 2019-12-13 02:34:50

问题


I want to apply style on StaticTextItem in SmartGWT's DynamicForm item.

I did not find any method like setStyleName for this component.

Is there any alternate way to apply style on StaticTextItem?

I have also noticed that ToolStrip Component can add only Form items, So Here I am stuck how would I apply a style particularly on StaticTextItem.

My goal is just add label with style on ToolStrip.

Any alternative to this appreciated!!!

Thanks!!!


回答1:


You can use following properties to apply styles to StaticTextItem:

staticTextItem.setTextBoxStyle(textBoxStyle);
staticTextItem.setCellStyle(cellStyle);


来源:https://stackoverflow.com/questions/9207036/how-to-apply-style-on-statictextitem-component-of-dynamicform-in-smartgwt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!