Javascript 向exceljs中的整列添加数据验证
如何在exceljs中向整个列添加数据验证?Javascript 向exceljs中的整列添加数据验证,javascript,exceljs,Javascript,Exceljs,如何在exceljs中向整个列添加数据验证? 或者是否有其他库支持此功能?通过在目标列中提供固定数量的单元格,假设目标列为columnL,您可以使用以下代码段: sheet.dataValidations.add('L2:L9999', { type: 'list', allowBlank: false, formulae: ['"male,female,other"'], showErrorMessage: true, errorStyle: 'error', erro
或者是否有其他库支持此功能?通过在目标列中提供固定数量的单元格,假设目标列为columnL,您可以使用以下代码段:
sheet.dataValidations.add('L2:L9999', {
type: 'list',
allowBlank: false,
formulae: ['"male,female,other"'],
showErrorMessage: true,
errorStyle: 'error',
error: 'The value Valid',
});
有关详细信息,请参见以下内容:
&