Search code examples
jquerydatatablesrendertabletools

datatable tableTools mDataProp not render column if using fnRender


I am using DataTables and the TableTools add-on. I want to use TableTools with a blank column to export a pdf version of the table. Using fnRender

$('#example').dataTable({ 
  'mDataProp':null, 
  'sTitle':'Date',
  'fnRender':function (oObj) {
       return oObj.aData.date.substring(0, 10);
   }
});

without fnRender , TableTools works well (of course)

sugestões?


Solution

  • fnRender is slated to be removed in the next release , and the documents suggest using mRender.