Skip to content

Instantly share code, notes, and snippets.

@ajitbohra
Created November 22, 2016 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajitbohra/d84fe79142b8408b5e685206ead4a07d to your computer and use it in GitHub Desktop.
Save ajitbohra/d84fe79142b8408b5e685206ead4a07d to your computer and use it in GitHub Desktop.
DataTables JS - How to change pagination button class ?
/*
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