【问题标题】:Jquery Datatable's exported excelJquery 数据表导出 excel
【发布时间】:2021-12-18 10:54:52
【问题描述】:

如何删除 jquery 数据表导出的 excel 标题(第一行)。我可以对齐一些列标题。 我的代码现在是这样的..

            buttons: [
                {
                    extend: 'excelHtml5',
                    text: '<i class="fa fa-file-excel" aria-hidden="true"></i>Eksport',
                    footer: true,
                    className: 'btn btn-success my-5',                      

                },
         

enter image description here

【问题讨论】:

    标签: jquery excel button datatable export


    【解决方案1】:

    buttons: [ { ... } ] 对象中使用title: null 选项。将标题设置为空字符串'' 也可以。

    有关详细信息,请参阅文档 herehere

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-22
      • 1970-01-01
      • 1970-01-01
      • 2019-05-13
      相关资源
      最近更新 更多