ce icon indicating copy to clipboard operation
ce copied to clipboard

style: is not working

Open 3AUCE opened this issue 6 years ago • 2 comments

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,
                },
        ],

    });

3AUCE avatar Mar 11 '20 14:03 3AUCE

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,
                },
        ],

    });

pphod avatar Mar 11 '20 22:03 pphod

@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.

3AUCE avatar Mar 12 '20 11:03 3AUCE