UNPKG

@syncfusion/ej2-spreadsheet

Version:

Feature-rich JavaScript Spreadsheet (Excel) control with built-in support for selection, editing, formatting, importing and exporting to Excel

97 lines (96 loc) 2.82 kB
/** * To get Workbook required modules. * * @hidden * @param {Workbook} context - Specifies the context. * @param {ModuleDeclaration[]} modules - Specifies the modules. * @returns {ModuleDeclaration[]} - To get Workbook required modules. */ export function getWorkbookRequiredModules(context, modules) { if (modules === void 0) { modules = []; } modules.push({ member: 'dataBind', args: [context] }); modules.push({ member: 'workbookProtectSheet', args: [context] }); if (context.allowSave) { modules.push({ member: 'workbookSave', args: [context] }); } if (context.allowPrint) { modules.push({ member: 'print', args: [context] }); } if (context.allowOpen) { modules.push({ member: 'workbookOpen', args: [context] }); } if (context.allowEditing) { modules.push({ member: 'workbookEdit', args: [context] }); modules.push({ member: 'workbookFormula', args: [context] }); } if (context.allowNumberFormatting) { modules.push({ member: 'workbookNumberFormat', args: [context] }); } if (context.allowCellFormatting) { modules.push({ member: 'workbookcellformat', args: [context] }); } if (context.allowSorting) { modules.push({ member: 'workbookSort', args: [context] }); } if (context.allowHyperlink) { modules.push({ member: 'workbookHyperlink', args: [context] }); } if (context.allowFiltering) { modules.push({ member: 'workbookFilter', args: [context] }); } if (context.allowFindAndReplace) { modules.push({ member: 'workbookfindAndReplace', args: [context] }); } if (context.allowInsert) { modules.push({ member: 'workbookinsert', args: [context] }); } if (context.allowDelete) { modules.push({ member: 'workbookdelete', args: [context] }); } if (context.allowDataValidation) { modules.push({ member: 'workbookDataValidation', args: [context] }); } if (context.allowMerge) { modules.push({ member: 'workbookmerge', args: [context] }); } if (context.allowCellFormatting) { modules.push({ member: 'workbookConditionalFormatting', args: [context] }); } if (context.allowImage) { modules.push({ member: 'workbookImage', args: [context] }); } if (context.allowChart) { modules.push({ member: 'workbookChart', args: [context] }); } if (context.allowAutoFill) { modules.push({ member: 'workbookautofill', args: [context] }); } return modules; }