Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SectionItem - Centering the Title

    Hello,

    I am working with Smart GWT Pro release 2.3 and I have a dynamic form with multiple sections inside of it.

    For example:

    Code:
    final SectionItem researchSection = new SectionItem("research_section", "Research");
    researchSection.setDefaultValue("Research");
    researchSection.setSectionExpanded(true);
    researchSection.setCanCollapse(false);
    researchSection.setColSpan(2);
    researchSection.setWidth(400);
    researchSection.setEndRow(false);
    The code fragment above displays in the form as expected (see attached image).

    Now, I would like to center the title "Research" within the section item UI control. How could I go about doing that?

    Thank you.
    Attached Files

    #2
    For an individual SectionItem, you can setAttribute("baseStyle", "cssStyleName") to replace the CSS style used with one that has align:center.

    Comment

    Working...
    X