We are using Sencha Touch 2.3.0 framework for our app. We have a list of items that is grouped by date. We are trying to adjust the group header's layout with css. All documentation on the internet says that we had to add the cls:'CustomClass' item, and add the class to the app.css file. Alle other classes in that file are working problerly. So it cannot be the css file.
We did, instead it isn't working, we still see the default layout. Might anybody be able to help?
.groupedHeader .x-list-header{
background-color: #C4C9CC !important;
background-image: none !important;
border-color: #C4C9CC !important;
color: #fff;
font-weight: none;
text-shadow: none !important;
}
List definition:
{
xtype: 'list',
onItemDisclosure: false,
scrollToTopOnRefresh: false,
itemId: 'listOrderItemsId',
id: 'listOrderItemsId',
grouped: true,
store: 'OrderStore',
infinite: true,
cls: 'groupedHeader',
variableHeights: true,
itemTpl: '<div style="padding: 12px 15px;border-top:1px solid #e6e6e6">{firstName} {lastName}</div>'
}
Try this:
Use the inspector of your browser to find out the right DOM element, when you are not sure which one you need exactly: