I'll describe the situation where I think to need it:
I have kind of a dashboard.
On that dashboard I display five different dashboard items. (top row: 2, middle row: 2, bottom row: 1)
First, for the dashboard items I used a ContentPanel because it has a header in which I can tell the user what the dashboard item is showing - the title.
However, for two of the five dashboard items I needed to add a combo box right after the title text.
ContentPanel has an addTool() but that placed the combo in the upper right corner. So,
I decided to replace the ContentPanel by my own TitledContainer class being a VerticalLayoutContainer containing
- as first sub component (the top content), an HBoxLayoutContainer (to hold the Label (=title) and possibly another widget (=the combo box)
- as 2nd sub component (the main content), whatever other widget you want to display there (a grid or a chart in my case)
Now for the top content I want
- the title text and the combo box (if any) on a specific background color (cf. the ContentPanel's header)
- the title text in a specific color
Currently, since I can't use an appearance, I did it using
If you wonder why I posted the above, it's an answer to this comment from Sencha (that for some reason doesn't appear here):
An HBoxLayoutContainer is intended to be an invisible container used to position and size your components in a particular horizontal arrangement. There is no constructor accepting an appearance because HBoxLayoutContainer has no appearance and isn't designed to be styled. Take a look at http://staging.sencha.com:8080/examp...ace:hboxlayout for an example of how HBoxLayoutContainer is typically used.
What particular styling are you intending to do? There may be another container or composition of containers that more closely matches what you're trying to do.
I've moved this thread to Discussion as this is not a bug.
Sorry for the confusion. I deleted my post and moved your thread back to Bugs shortly after I posted so as to give myself a chance to have a chat with another engineer. HBoxLayoutContainer wasn't intended to be styled, but the idea of styling an HBoxLayoutContainer isn't deserving of being dismissed out-of-hand.
Thanks for posting the more detailed use case. I'll post another reply once I've had a chance to talk this over.