MCPcopy Create free account
hub / github.com/apitable/apitable / exportDatasheet

Function exportDatasheet

packages/datasheet/src/pc/utils/catalog.ts:304–310  ·  view source on GitHub ↗
(datasheetId: string, exportType: string, option: { view?: IViewProperty; mirrorId?: string } = {})

Source from the content-addressed store, hash-verified

302 * @param option
303 */
304export const exportDatasheet = (datasheetId: string, exportType: string, option: { view?: IViewProperty; mirrorId?: string } = {}) => {
305 store.dispatch(
306 StoreActions.fetchDatasheet(datasheetId, async () => {
307 await exportDatasheetBase(datasheetId, exportType, option);
308 }) as any,
309 );
310};
311
312export const exportExcelBase = (workbook: Workbook, fileName: string, extraFunc?: () => void) => {
313 workbook.xlsx.writeBuffer().then((buffer) => {

Callers 5

exportAsCsvFunction · 0.90
exportExcelFunction · 0.90
exportTypeCsvFunction · 0.90
exportTypeXlsxFunction · 0.90
exportMirrorFunction · 0.85

Calls 3

exportDatasheetBaseFunction · 0.85
dispatchMethod · 0.45
fetchDatasheetMethod · 0.45

Tested by

no test coverage detected