html - Javascript: tableExport JQuery Plugin Format Cells -
i using tableexport plugin , want know how possible me color header cells , make cell fit text , center text on middle.
it looks this:
and want this:
my code is:
function doexport(selector, params) { var options = { //ignorerow: [1,11,12,-2], //ignorecolumn: [0,-1], //pdfmake: {enabled: true}, tablename: 'usr_tbl', worksheetname: 'analiza lunara vizite', htmlcontent:true, type: 'excel', filename: 'analiza lunara vizite', bootstrap: true }; $.extend(true, options, params); $(selector).tableexport(options); }
<li><a href="#" onclick="doexport('#usr_tbl', {type: 'xlsx'});"> <img src='icons/xls.png' alt="xlsx" style="width:24px"> xlsx</a></li>
Comments
Post a Comment