how can i do to give background color to the headers using alasql? -
what right key word give header bgcolor ?
window.exportexcel = function exportexcel(listpersone) { var filename=prompt(); var opts = { headers:true, style:'background:#00ff00', //doesn't work column: {style:{font:{bold:"1"}}}, rows: {1:{style:{font:{color:"#ff0077"}}}}, cells: {1:{1:{ style: {font:{color:"#00ffff"}} }}} }; alasql('select * xlsxml("'+filename+'.xls",?) ?',[opts,listpersone ]); }
this solution give header background color !
var opts = { headers:true, column: { style:{ font:{ bold:"1", color:"#3c3741", }, alignment:{ horizontal:"center" }, interior:{ color:"#7ceece", pattern:"solid" } }, },
Comments
Post a Comment