问题描述
我在浏览器中使用Tabulator作为前端表框架。我的某些专栏的标题较长,并按html换行符(<br>
)分隔。
当我download the table data in Excel file format时,我的列标题(=此电子表格导出的第一行)包含那些<br>
作为纯文本,例如:Foo<br>bar
。
如何在excel导出中删除这些字符?这有可能吗?有什么想法吗?
编辑
解决方法
您可以在此处Download Title的下载中指定要替换的标题为:
columns: [
{ title: "Name",field: "name",titleDownload: "Full Name" } //change column title to "Full Name" in download
]
如果您真的想自定义内容,则可以构建自己的自定义文件格式化程序Custom Format。