JsPdf Auto Table : Customize headers with colspan -


i need export few tables pdf format. decided use jspdf-autotable can't find way customize header. need in header style :

 _________________________________________  |__________|______________|_____________|  |____|_____|___|__|___|___|___|___|__|__|   |____|_____|    ... (content)  |____|_____|    ... (content) 

the first line problem, headers define differently, , cant find way through "drawheadercell" method. u know way ?

thank you

to such result implement drawheadercell hook this:

    drawheadercell: function(cell, data) {         if (data.column.datakey === 'id' || data.column.datakey === 'first_name' || data.column.datakey === 'email') {             cell.width = data.table.width / 3;         } else {             return false;         }     } 

doing rowspans , colspans quite complicated @ stage jspdf-autotable. there example how implemented in repo however.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -