Possible to insert new line / break in messageTop?
Possible to insert new line / break in messageTop?
 relish27            
            
                Posts: 11Questions: 2Answers: 0
relish27            
            
                Posts: 11Questions: 2Answers: 0            
            Hello,
I have header and footer legend notes that I'd like to append to my exported XLS file.  I was thinking that I could somehow include "\n" and then they'd go to the next line, even if all the text was in one cell.  Is that possible?
I have tried a few things I've seen people try:
                        exportOptions: {
                            stripNewlines: false
                        },  
And:
            var data = output_table.buttons.exportData( {
                modifier: {
                    stripNewlines: false,
                    stripHTML: false
                }
            } );    
But I'm not having any luck. Is this possible? I'd love to have a list of items in the footer (or header) if I can.
This question has an accepted answers - jump to answer
This discussion has been closed.
            
Answers
Turns out I actually needed just to get my text wrapping. The text was already in list form, but without text-wrapping, they were getting mooshed together on one line. So, first I did this:
And then it was working, but it appeared the text was missing, as the text was vertically aligned to the bottom. I don't exactly get it, but I was able to use this example to get it to align better: https://datatables.net/forums/discussion/comment/108872/#Comment_108872
I then decided to increase the height of my "legend" row so that people would know it was there -- even if they did need to increase the height.
All together, this is the start of my "customize" property:
You've been busy, it sounds like you've made progress and resolved your issue, but shout if we can help.
@colin Thank you!