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:

enter image description here

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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -