buttons.info() modal box multiline message

buttons.info() modal box multiline message

susdususdu Posts: 1Questions: 1Answers: 0

any Idea how I might accomplish that? I want to have more control over the formatting
in the modal box. I tried sending string with \n in them but it didn't work.
I'll probably have to modify the API itself, I just need a direction.

Thanks

Answers

  • allanallan Posts: 64,925Questions: 1Answers: 10,753 Site admin

    You can use HTML tags in the strings. For example:

    $('#example').DataTable().buttons.info('Carol King', 'My life has been a tapestry or rich and royal hue<br>An ever lasting vision');
    

    Run on this page shows a line break.

    Allan

This discussion has been closed.