title: How to edit DataTable() Print Title
body: <p>I tried searching in google how to change datatable title and i found this thread <a href="https://stackoverflow.com/questions/39386742/datatables-api-how-to-change-print-page-title">Datatables API: how to change Print page title</a></p>
  
  <p>The best answer for this thread is</p>
  
  <pre><code> var table = $('table').DataTable({
     buttons: [
        extend: 'print',
        title: function(){
           return foo.title
        }
     ]
  });
  </code></pre>
  
  <p>I don't understand how it works using this gives me error in console 'indexOf..'</p>
  
  <p>this is the picture of what i want to change
  <a href="https://i.stack.imgur.com/y1LpD.png" rel="nofollow noreferrer">DataTable Website Customized Print Example</a></p>
  
  <p><strong>EDIT 1</strong> trying this code</p>
  
  <pre><code> var table = $('table').DataTable({
     buttons: [
        extend: 'print',
        title: function(){
          var printTitle = 'New Title';
           return printTitle.title
        }
     ]
  });
  </code></pre>