I created a CellList in my entry point. Now I want to style it.( Changing the color of selected cell from blue to dark black )
In my knowledge, I only need to override the style of cellList, choose the selected one and change the background color (and then save inside the module.css)
So this is what I came with.
@sprite .cellListSelectedItem {
/*gwt-image: 'cellListSelectedBackground';*/
/*BEFORE : background-color: #628cd5;*/
background-color: #2D2D2D;
color: white;
height: auto;
overflow: visible;
}
However everytime I select a cell, it still displaying old color (#628cd5). Anything I did wrong?
And oh yes, I cleaned the project and restarted the server-and also clear browser cache.
You need to tell GWT to use the new styles — simply adding them to your module CSS file isn’t going to be enough:
CellTableResources.INSTANCE should be a Resource bundle instance that extends the CellTable Resource bundle. Something like:
And then of course the same sort of thing for CellTableStyle: