PDA

View Full Version : Where can I set the STRIPEROW color in a theme



blomasky
21 Jan 2014, 4:14 AM
I am sure it's just my OLD eyes, but I can't find where the stripe row color is in either the classic or neptune theme. I am using SA3 and would like to be able to change it there.

Thanks
Bruce

mdnaveed42
21 Jan 2014, 4:41 AM
Hi,

You can the change the color in your project css file(If you don't have one, create it)

Eg:


#gridId .x-grid-row-alt {
background-color: #ff0000 !important; // red
}

From Sencha Docs:
"This causes the CSS class x-grid-row-alt to be added to alternate rows of the grid. A default CSS rule is provided which sets a background color, but you can override this with a rule which either overrides the background-color style using the !important modifier, or which uses a CSS selector of higher specificity."

Hope this works for you :)

Thanks,
Md Naveed

blomasky
21 Jan 2014, 5:26 AM
Thanks, I did read that, but I now that I am embracing SASS and Sencha Themes, I was hoping there was a way to do it in the Theme.bruce

evant
21 Jan 2014, 5:38 AM
The variable is:

$grid-row-cell-alt-background-color