You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
334 B
JavaScript
9 lines
334 B
JavaScript
export const xlsx = function(id, name = 'Neraca', custome = null){
|
|
let content = document.querySelector(id)
|
|
let html = content.outerHTML;
|
|
let exp = el('div').html(html).get().children[0];
|
|
if(custome && typeof custome === 'function'){
|
|
custome(exp);
|
|
}
|
|
tableToExcel(exp, 'Laporan', name+'-'+Date.now());
|
|
} |