Download Excel
Run Description

Source of demo: idfilter/run.astr.

In this example we demonstrate the excel export:

const tableModel = TableFactory.createTableModel({
rows,
columnDefs,
tableOptions
});
const tableScope = new TableScope(
divEle,
tableModel,
new SimpleDomService(),
tableOptions,
new EventAdapter()
);
tableScope.firstInit();
const tableApi = tableScope.getApi();
downloadExcelBtn.addEventListener("click", (event) => {
tableApi.downloadExcel();
});