简体   繁体   中英

Export multiple tabs with ui-grid into excel

I have multiple tabs, and each tab has a ui-grid .

I want to export each grid on click of a button, as a separate sheet in an excel workbook, maintaining each of the grids format in the sheet.

There are no built-in functionality to do this. However, You can use Alasql .

From each gridApi refer the 'data' array to export the contents. Example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM