PLEASE HELP ON THIS. Problem (bug?) setting class dynamically
When I set a cell with a class:
obj.getCellTemplate(0,0).setClass("columnx","selected");
the entry in the CSS is:
.aw-columnx-selected {background:#ff0000;}.
The background color will only change if I make it !important:
.aw-columnx-selected {background:#ff0000!important;}
But in this case, even upon changing the class to a class with another color, the color remains in the cell.
Strangely, if I use:
obj.getCellTemplate(0,0).setClass("column","selected");
where the entry is:
aw-column-selected {background:#ff0000;}
the color changes even without the !important! And I can remove the color as I hoped. However, this changes the cell width! I can not figure this out! Please help!
obj.getCellTemplate(0,0).setClass("columnx","selected");
the entry in the CSS is:
.aw-columnx-selected {background:#ff0000;}.
The background color will only change if I make it !important:
.aw-columnx-selected {background:#ff0000!important;}
But in this case, even upon changing the class to a class with another color, the color remains in the cell.
Strangely, if I use:
obj.getCellTemplate(0,0).setClass("column","selected");
where the entry is:
aw-column-selected {background:#ff0000;}
the color changes even without the !important! And I can remove the color as I hoped. However, this changes the cell width! I can not figure this out! Please help!
Joel
December 22,