Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

452
Views
How to change title font size for excel export Datatable?

I need to add customized title for excel file exported from Datatable. Tried this from a stackoverflow answer but it applies to whole sheet.

$("#datatable").DataTable({
          dom: "lBfrtip",
          buttons: [
            {
              extend: "excelHtml5",
              title: "Audit Trail Report",
              messageTop: `From ${this.start_date} To ${this.end_date}`,
              customize: function (xlsx) {
                var sheet = xlsx.xl["styles.xml"];
                var tagName = sheet.getElementsByTagName("sz");
                for (let i = 0; i < tagName.length; i++) {
                  tagName[i].setAttribute("val", "22");
                }
              },
            },
            {
              extend: "pdf",
              title: "Audit Trail Report",
              messageTop: `From ${this.start_date} To ${this.end_date}`,
            },
          ],
          searching: false,
        })
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!