我正在使用 jQuery dataTables 来显示数据网格,我正在寻找一个选项,通过它我可以在表格下方显示“1 of x pages”,但找不到这样的选项,请帮忙!
var initialize = function(){
// method call to display data grid for investors
displayInvestorGrid();
};
var displayInvestorGrid = function(){
// initialize investor's grid
var grid = investorGrid.dataTable({
"oLanguage": {
"sZeroRecords": "No records to display"
},
"iDisplayLength": 10,
"bSort": true,
"bPaginate": true,
"sPaginationType": "full_numbers",
"bLengthChange": false,
"bFilter": true,
"bInfo": false,
"aoColumns": [ null, null, null, null, null ,null, {
"bSortable": false,
"bSearchable": false
},
{
"bSortable": false,
"bSearchable": false
},{
"bSortable": false,
"bSearchable": false
}
]
});
// calling append method to append drop down
$('#investors_filter').append("<div id='select-div'>Select Status:"+fnCreateSelect()+"</div>");
// filter result on change of select box value
$('#select-div select').change( function () {
grid.fnFilter( $(this).val(), 4 );
} );
}; // end method displayInvestorGrid