Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
feat(facade): get custom meta data (#4759)
Dushusir14543ccccdc5
diff --git a/packages/sheets/src/facade/f-worksheet.ts b/packages/sheets/src/facade/f-worksheet.tsindex c6f702cf5e..91050a3e4f 100644--- a/packages/sheets/src/facade/f-worksheet.ts+++ b/packages/sheets/src/facade/f-worksheet.ts@@ -2389,6 +2389,21 @@ export class FWorksheet extends FBaseInitialable {return this;}+ /**+ * Get custom metadata of worksheet+ * @returns {CustomData | undefined} custom metadata+ * @example+ * ```ts+ * const fWorkbook = univerAPI.getActiveWorkbook();+ * const fWorkSheet = fWorkbook.getActiveSheet();+ * const custom = fWorkSheet.getCustomMetadata();+ * console.log(custom);+ * ```+ */+ getCustomMetadata(): CustomData | undefined {+ return this._worksheet.getCustomMetadata();+ }+/*** Set custom metadata of row* @param {number} index - row index