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
Post a Comment