Jump to content

How To Change GroupBox Caption's Style And Size?


Frederick

Recommended Posts

9 hours ago, Frederick said:

Is there a way to change the TUniGroupBox's caption's style and size?

Hello,

One possible solution

1. UniServerModule.CustomCSS:

.myGroupBox .x-fieldset-header-text {
   font-family: "Times New Roman", Times, serif;
   font-size: 14px;
   font-style: italic;
   font-weight: bold;
   color: green;
}

2. UniGroupBox.LayoutConfig.Cls = myGroupBox

Link to comment
Share on other sites

10 hours ago, Sherzod said:

Hello,

One possible solution

1. UniServerModule.CustomCSS:


.myGroupBox .x-fieldset-header-text {
   font-family: "Times New Roman", Times, serif;
   font-size: 14px;
   font-style: italic;
   font-weight: bold;
   color: green;
}

2. UniGroupBox.LayoutConfig.Cls = myGroupBox

Unfortunately, this does not do anything to change the group box's caption's attributes.

Link to comment
Share on other sites

While making a test case for this post, I remembered that JS is case sensitive. When I changed the Cls property value of the group box from "myGroupbox" to "myGroupBox", the caption font size and style change took effect.

However, the child group box (Prices) also took the Cls value from the parent group box when no Cls value was specified for it.

How do I disable it?

How To Change GroupBox Caption Style And Size 2.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...