Multi row message top not working in Excelhtml5 export

Multi row message top not working in Excelhtml5 export

shreddershredder Posts: 2Questions: 1Answers: 0

hi,
I need to export multiline row in messagetop in excelhtml5 export but instead of breaking the row, it it just wrapping the text. I have attached the screenshot of the expected output and desired output.

          {
            extend: "excelHtml5",
            text: "Excel ",
            className:"btn btn-outline-info btn-sm float-left m-2",
            messageTop: 'Header 1 \nheader 2\nheader 3\nheader 4',
          }

Answers

  • shreddershredder Posts: 2Questions: 1Answers: 0

  • allanallan Posts: 62,990Questions: 1Answers: 10,367 Site admin

    There is no option for what you are looking for at the moment. You would need to modify the export code to make that possible. This is where you would do it you could make exportInfo.messageTop support an array - if an array is found, loop over it adding a row at a time.

    Allan

Sign In or Register to comment.