Created
November 22, 2016 12:37
-
-
Save ajitbohra/d84fe79142b8408b5e685206ead4a07d to your computer and use it in GitHub Desktop.
DataTables JS - How to change pagination button class ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
DataTables JS: How to change pagination button class | |
Read More: http://www.lubus.in/blog/datatables-js-change-pagination-button-class | |
*/ | |
jQuery(document).ready(function($) { | |
// Initialize Datatables | |
$.fn.dataTable.ext.classes.sPageButton = 'button button-primary'; // Change Pagination Button Class | |
$('#lubus-wordcamp').DataTable( { | |
"order": [[ 1, "asc" ]], | |
"pagingType": "simple" | |
} ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment