fnRender and jquery ui button
fnRender and jquery ui button
I'm trying to change the style of HTML tag, in fnRender, I'd like to display a button for each field, I tried but the style button dose not change, I have no idea why...,
this is my code: (I'm using the last version(1.8.0) of DATATABLE )
[code]
var oTable = $('#example').dataTable({
"bServerSide": true,
"bProcessing": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "data.php",
"aoColumnDefs": [
{
"fnRender": function ( oObj ) {
return oObj.aData[0] +'See more...';
},
"aTargets": [ 0 ]
},
],
[/code]
and :
[code]
$("#button").button({
});
[/code]
Do you have any idea why the button style don't changes when it is in "fnRender" function, while when it is in tag it changes:
thanks,
this is my code: (I'm using the last version(1.8.0) of DATATABLE )
[code]
var oTable = $('#example').dataTable({
"bServerSide": true,
"bProcessing": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "data.php",
"aoColumnDefs": [
{
"fnRender": function ( oObj ) {
return oObj.aData[0] +'See more...';
},
"aTargets": [ 0 ]
},
],
[/code]
and :
[code]
$("#button").button({
});
[/code]
Do you have any idea why the button style don't changes when it is in "fnRender" function, while when it is in tag it changes:
thanks,
This discussion has been closed.