Announcement

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

    How do i change the style of a layout group border/title text

    Hello, pretty straightforward question:

    Code:
    headersLayout = new VLayout();
    headersLayout.setWidth100();        
    headersLayout.setIsGroup(true);
    headersLayout.setGroupTitle("testing");
    
    headersLayout.setStyle("banana");
    Nothing happens when i change the style of the layout, is there a way to change the look and feel of the group??

    I have previously asked a similar question which didn't get looked at. I also would like to change the style of the border itself:

    Code:
    headersLayout.setBorder("1px solid #fd7d00");
    but that doesn't change anything either.


    I would be grateful for pointers, haven't been able to find any documentation for this.

    #2
    Though my reply is late for this thread, I think it still be useful for others who want to change the group border of a Canvas object.
    My solution is to override a group related method of the Canvas object, for example:

    headersLayout = new VLayout(){
    @Override
    public void setIsGroup(Boolean g){
    setAttribute("groupBorderCSS", "1px solid darkgray" , true);
    super.setIsGroup(g);
    }
    };

    the 'groupBorderCSS' is border related style, you can replace the default with what ever you want.

    Comment

    Working...