Announcement

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

    SectionItem styling

    It seems my previous post has been removed or I forgot to submit it.

    Anyway, I want to be able to set the section item's style so that it has a background color or a border around it. How do I go about doing this? I've tried setting textboxStyle, styleName, baseStyle and cellStyle and none of them work.

    #2
    There are two possible SectionHeader implementations depending on your skin. One is based on Label and Label properties (such as styleName) will work. The other has a StretchImg as an autoChild called "background", so you use AutoChild-based configuration such as backgroundProperties, or using Clsas.changeDefaults() - see the AutoChild overview in the docs for details.

    Comment


      #3
      Actually, its not the header I'm having problems with. It is the space that the sectionItem occupies. In other words the space in which the items that are under the section are located.

      Comment


        #4
        That's not part of the SectionHeader, you're just seeing through to the background color / styleName of the SectionStack as a whole.

        If you want a border around a particular section, you would do that by setting section.items to a single item which might be a Canvas or VLayout, which you would then style.

        Comment


          #5
          are we talking about the same thing? I'm working with a SectionItem under a dynamic form, not section stack

          Comment


            #6
            SectionItem is analogous - any styling on the item or SectionHeader is just for the header itself. There is no place to apply a style that surrounds the items that belong to the section, instead, you would need to take those items and create a sub-form via a CanvasItem, and apply styling to that sub-form.

            Comment


              #7
              Ah, ok. Thanks!

              Comment

              Working...
              X