I would like to apply a background-color style conditionally in the itemTpl of a list. Let's say my itemTpl looks something like:
itemTpl: '<tpl if="condition"> <div class="highlight"> ... </div> </tpl> '
The problem is that when I do that the style "highlight" doesn't apply to the whole list item.
If I inspect the DOM, I see that the content of my itemTpl is inside another div with class "x-list-item" containing another div with class "x-list-item-label". Therefore, applying a background style to my itemTpl does not fill the full area...
Does anyone know how to affect the whole area (thus the "x-list-item" or "x-list-item-label") ?
Is there a css/sass trick to affect the parent of my div ? Is there a sencha trick ?
thanks