I am trying to add nowrap for my jquery datatable without success.
Something like this (not working)
$.ajax( {
"url": 'invokeHawkAgent.gsp',
"success": function ( json ) {
json.bDestroy = true;
$('#tabs-1-contents').dataTable({'data':json,
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
$('td', nRow).attr('nowrap','nowrap');
return nRow;
}
});
},
"dataType": "json"
} );
Working (but without nowrap)
$.ajax( {
"url": 'invokeHawkAgent.gsp',
"success": function ( json ) {
json.bDestroy = true;
$('#tabs-1-contents').dataTable(json);
},
"dataType": "json"
} );
Any ideas how to add nowrap to this?
Thanks!
For anyone interested, this is how I solved the problem:
JSON
jQuery: