hi icarted datatable by below code how to add butoon to export the data to exel
let element = frm.get_field("result_html").$wrapper.get(0);
frm.doc.doo = new frappe.DataTable(element, {
columns: [ {
name: 'Name',
id: 'name',
editable: true,
// resizable: false,
// sortable: false,
// focusable: false,
// dropdown: false,
width: 200,
format: (value) => {
return value.bold();}}
, 'Position', 'Salary'],
data: [
['Faris', 'Software Developer', '$1200'],
['Manas', 'Software Engineer', '$1400'],
], checkboxColumn: true,
inlineFilters: true
});