DATATABLE jQuery TH and TD alignment
hi guys I have a code using jquery.datatable
I want the header to be center align and the td to be right aligned, for
example and
my code js
var myegiftcardstable = $j('#myegiftcardstable').dataTable(
{
"bAutoWidth": false,
"bServerSide": true,
"bProcessing": true,
"sAjaxSource": "<?php echo
$this->getUrl('myegiftcard/egiftcard/getMyEGiftCards')
?>",
"iDisplayLength": 10,
"bSearchable": false,
"bSortable" : true,
"bFilter": true,
"bLengthChange": false,
"sPaginationType": "full_numbers",
"aoColumns": [
{ "sName": "prod_name"},
{ "sName": "egiftcard_code" },
{ "sName": "price" ,"sClass": "a-right"},
{ "sName": "is_redeemed" , 'bSortable' : false},
{ "sName": "date_redeemed", "sClass": "width_120 " },
{ "sName": "action",'bSortable' : false }
],
}
);
do you have any suggestion how to do that?
No comments:
Post a Comment