1

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!!!

Bhavesh
  • 519
  • 6
  • 26

1 Answers1

2

You can use following properties to apply styles to StaticTextItem:

staticTextItem.setTextBoxStyle(textBoxStyle);
staticTextItem.setCellStyle(cellStyle);
RAS
  • 8,100
  • 16
  • 64
  • 86
  • 2
    It seems bit confusing. Why they haven't kept it like setStyleName as it there for other components? – Bhavesh Feb 09 '12 at 12:19