Adding custom classes to pagination failing
Adding custom classes to pagination failing
I'm trying to use custom classes for pagination. For example, I want to replace the paging button with a class called "button". Here's the code:
[code]
oTable = $("#<%= tblPINs.ClientID %>").dataTable({
"sPaginationType": "full_numbers",
"bSortClasses": false,
"sPageButton": "button"
});
[/code]
When I view source, I still see class="paginate_button" instead of class="button" in the span. This is the same case with all the pagination classes. (sPageButtonActive , sPageFirst , etc.)
Am I doing something wrong above? (This is with DataTables v1.7.6)
[code]
oTable = $("#<%= tblPINs.ClientID %>").dataTable({
"sPaginationType": "full_numbers",
"bSortClasses": false,
"sPageButton": "button"
});
[/code]
When I view source, I still see class="paginate_button" instead of class="button" in the span. This is the same case with all the pagination classes. (sPageButtonActive , sPageFirst , etc.)
Am I doing something wrong above? (This is with DataTables v1.7.6)
This discussion has been closed.
Replies
[code]
$.fn.dataTableExt.oStdClasses.sPageButton = "button";
oTable = $("#<%= tblPINs.ClientID %>").dataTable({
"sPaginationType": "full_numbers",
"bSortClasses": false
});
[/code]
Jason