sPdfMessage not working!!

sPdfMessage not working!!

dmarcos1989dmarcos1989 Posts: 1Questions: 0Answers: 0
edited November 2013 in TableTools
Hi, this extra option is not working on my project.
I paste the code above.
Thanks for your help.
Damian








// Table initialisation
$(document).ready( function () {
$('#example').dataTable( {
//"sDom": "<'row-fluid'<'span6'f><'span6'>t>r<'row-fluid'<'span4'i><'span6'p><'span2'T>>",
"sDom": "<'row'<'span8'l><'span8'f>r>t<'row'<'span6'i><'span6'T>><'row'<'span8'p>>",
"sPaginationType": "bootstrap",
"oLanguage": { "sLengthMenu": "_MENU_ records per page" },
"oTableTools": {
"aButtons": [
{
"sExtends": "collection",
"sButtonText": 'Descargar ',
"aButtons": [ "pdf" ],
"sPdfOrientation": "landscape",
"sPdfMessage": 'Your custom message would go here.',
"sPdfSize": "A3"
}


],
"sSwfPath": "copy_csv_xls_pdf.swf"

}
} );
} );

/* Default class modification */
$.extend( $.fn.dataTableExt.oStdClasses, {
"sSortAsc": "header headerSortDown",
"sSortDesc": "header headerSortUp",
"sSortable": "header"
} );

/* API method to get paging information */
$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
{
return {
"iStart": oSettings._iDisplayStart,
"iEnd": oSettings.fnDisplayEnd(),
"iLength": oSettings._iDisplayLength,
"iTotal": oSettings.fnRecordsTotal(),
"iFilteredTotal": oSettings.fnRecordsDisplay(),
"iPage": Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
"iTotalPages": Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
};
}

/* Bootstrap style pagination control */
$.extend( $.fn.dataTableExt.oPagination, {
"bootstrap": {
"fnInit": function( oSettings, nPaging, fnDraw ) {
var oLang = oSettings.oLanguage.oPaginate;
var fnClickHandler = function ( e ) {
e.preventDefault();
if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
fnDraw( oSettings );
}
};

$(nPaging).addClass('pagination').append(
''+
'← '+oLang.sPrevious+''+
''+oLang.sNext+' → '+
''
);
var els = $('a', nPaging);
$(els[0]).bind( 'click.DT', {
action: "previous"
}, fnClickHandler );
$(els[1]).bind( 'click.DT', {
action: "next"
}, fnClickHandler );
},

"fnUpdate": function ( oSettings, fnDraw ) {
var iListLength = 5;
var oPaging = oSettings.oInstance.fnPagingInfo();
var an = oSettings.aanFeatures.p;
var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);

if ( oPaging.iTotalPages < iListLength) {
iStart = 1;
iEnd = oPaging.iTotalPages;
}
else if ( oPaging.iPage <= iHalf ) {
iStart = 1;
iEnd = iListLength;
} else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
iStart = oPaging.iTotalPages - iListLength + 1;
iEnd = oPaging.iTotalPages;
} else {
iStart = oPaging.iPage - iHalf + 1;
iEnd = iStart + iListLength - 1;
}

for ( i=0, iLen=an.length ; i
This discussion has been closed.