ce
ce copied to clipboard
style: is not working
any thoughts on why style would not be producing any results or errors?
var myTable = jexcel(document.getElementById('spreadsheet'), {
url: '/gantt_data',
columns: headers,
style: [
{A1: 'background-color:red;'},
],
onload: function(a, b) {
var count = headers.length;
for(var i=6;i<=count;i++){
b.headers[i].classList.add('employee');
}
},
columnResize:false,
nestedHeaders:[
{
title: 'SCHEDULE',
colspan: headers.length,
},
],
});
Try that:
var myTable = jexcel(document.getElementById('spreadsheet'), {
url: '/gantt_data',
columns: headers,
style: {A1: 'background-color:red;'},
onload: function(a, b) {
var count = headers.length;
for(var i=6;i<=count;i++){
b.headers[i].classList.add('employee');
}
},
columnResize:false,
nestedHeaders:[
{
title: 'SCHEDULE',
colspan: headers.length,
},
],
});
@paulhodel - same result. no change, no errors. when i open up the devtools and view the css for that specific cell (and the cells around it), 'background-color' is not found anywhere.